You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New default behavior (link) -buildvcs=auto in go1.18 detects VCS data in sources e.g. .git/. If active, go tool invocations including go build and go test will call vcs tools (typically git) to encode VCS info into the built binary or tool output.
Mitigation:
In each RPM section where go tool will be called (%build, %check), add export GOFLAGS="-buildvcs=false".
Follow up:
In go1.18.1, go test will revert to -buildvcs=off behaviour per: