fix: fix: load-project.sh should derive container repo paths instead of using TOML value (#502)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d61ef88c06
commit
3c443322ca
1 changed files with 7 additions and 0 deletions
|
|
@ -113,6 +113,13 @@ if [ -z "${OPS_REPO_ROOT:-}" ] && [ -n "${PROJECT_NAME:-}" ]; then
|
|||
export OPS_REPO_ROOT="/home/${USER}/${PROJECT_NAME}-ops"
|
||||
fi
|
||||
|
||||
# Inside the container, always derive repo paths from PROJECT_NAME — the TOML
|
||||
# carries host-perspective paths that do not exist in the container filesystem.
|
||||
if [ "${DISINTO_CONTAINER:-}" = "1" ] && [ -n "${PROJECT_NAME:-}" ]; then
|
||||
export PROJECT_REPO_ROOT="/home/agent/repos/${PROJECT_NAME}"
|
||||
export OPS_REPO_ROOT="/home/agent/repos/${PROJECT_NAME}-ops"
|
||||
fi
|
||||
|
||||
# Derive FORGE_OPS_REPO if not explicitly set
|
||||
if [ -z "${FORGE_OPS_REPO:-}" ] && [ -n "${FORGE_REPO:-}" ]; then
|
||||
export FORGE_OPS_REPO="${FORGE_REPO}-ops"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue