The linker flags passed to the stdlib action need to contain absolute paths to work in Go's own build environment, but should not pollute the resulting archives with absolute paths. Since cgo persists the linker flags in //go:cgo_ldflag comments, those are now rewritten by the (renamed) filterbuildid command.
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
The linker flags passed to the stdlib action need to contain absolute paths to work in Go's own build environment, but should not pollute the resulting archives with absolute paths. Since cgo persists the linker flags in
//go:cgo_ldflag
comments, those are now rewritten by the (renamed) filterbuildid command.Which issues(s) does this PR fix?
Fixes #3994
Other notes for review