Skip to content

Commit faf91ca

Browse files
authored
Merge pull request #1926 from github/mbg/suppress-go-workaround-warning
Suppress Go workaround warning if autobuilder ran
2 parents 0d5c2e0 + ffaea6c commit faf91ca

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

lib/analyze-action.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ async function run() {
239239
// precedence in the PATH, thus potentially circumventing our workaround that allows tracing to work.
240240
const goWrapperPath = process.env[EnvVar.GO_BINARY_LOCATION];
241241

242-
if (goWrapperPath !== undefined) {
242+
if (
243+
process.env[EnvVar.DID_AUTOBUILD_GOLANG] !== "true" &&
244+
goWrapperPath !== undefined
245+
) {
243246
const goBinaryPath = await safeWhich("go");
244247

245248
if (goWrapperPath !== goBinaryPath) {

0 commit comments

Comments
 (0)