Suppress Go workaround warning if autobuilder ran

This commit is contained in:
Michael B. Gale
2023-10-06 15:11:31 +01:00
parent a2dc5ffaff
commit 4eccc6dac4
3 changed files with 7 additions and 3 deletions

View File

@@ -239,7 +239,10 @@ async function run() {
// precedence in the PATH, thus potentially circumventing our workaround that allows tracing to work.
const goWrapperPath = process.env[EnvVar.GO_BINARY_LOCATION];
if (goWrapperPath !== undefined) {
if (
process.env[EnvVar.DID_AUTOBUILD_GOLANG] !== "true" &&
goWrapperPath !== undefined
) {
const goBinaryPath = await safeWhich("go");
if (goWrapperPath !== goBinaryPath) {