Fix problem with Go snippet compilation (#2144)

* Fix problem with Go snippet compilation

* Update automation/snippets/lib/languages/go.py

Co-authored-by: xzfc <5121426+xzfc@users.noreply.github.com>

---------

Co-authored-by: xzfc <5121426+xzfc@users.noreply.github.com>
This commit is contained in:
Abdon Pijpelink
2026-02-20 13:41:18 +01:00
committed by GitHub
co-authored by xzfc
parent 71638beabb
commit 598f6720bf
+5 -1
View File
@@ -47,7 +47,11 @@ class LanguageGo(Language):
},
)
subprocess.run(["go", "build", "-o", "tester", "."], cwd=tmpdir, check=True)
subprocess.run(
["go", "build", "-buildvcs=false", "-o", "tester", "."],
cwd=tmpdir,
check=True,
)
return result