Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/dev/contexts/evg-private-context
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if [ -f "${ENV_FILE}" ]; then
source "${ENV_FILE}"
fi

export PROJECT_DIR="${script_dir:-}/../../../"
PROJECT_DIR=$(realpath "${script_dir:-}/../../../")
export PROJECT_DIR

export NAMESPACE_FILE="${workdir}/.namespace"
if [ -f "${NAMESPACE_FILE}" ]; then
Expand All @@ -39,11 +40,15 @@ export EVG_HOST_NAME=""
export GOROOT="/opt/golang/go1.24"

if [[ ! ${PATH} =~ .*${workdir:-.}/bin.* ]]; then
export PATH=${PATH}:${workdir:-.}/bin
export PATH=${workdir:-.}/bin:${PATH}
fi
if [[ ! ${PATH} =~ .*${PROJECT_DIR}/bin.* ]]; then
export PATH=${PROJECT_DIR}/bin:${PATH}
fi
if [[ ! ${PATH} =~ .*${GOROOT}/bin.* ]]; then
export PATH=${GOROOT}/bin:${PATH}
fi
echo "Setting PATH=${PATH}"

export LOCAL_OPERATOR="false"

Expand Down
Loading