We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9aa98d1 + 3ddf28f commit 209f100Copy full SHA for 209f100
hack/lib/util/environment.sh
@@ -107,12 +107,14 @@ readonly -f os::util::environment::setup_all_server_vars
107
# - export PATH
108
function os::util::environment::update_path_var() {
109
local prefix
110
- prefix="${OS_OUTPUT_BINPATH}/$(os::util::host_platform):"
+ if os::util::find::system_binary 'go' >/dev/null 2>&1; then
111
+ prefix+="${OS_OUTPUT_BINPATH}/$(os::util::host_platform):"
112
+ fi
113
if [[ -n "${GOPATH:-}" ]]; then
114
prefix+="${GOPATH}/bin:"
115
fi
116
- PATH="${prefix}:${PATH}"
117
+ PATH="${prefix}${PATH}"
118
export PATH
119
}
120
readonly -f os::util::environment::update_path_var
0 commit comments