cmd/internal/testdir: testenv.go:166: skipping test: 'go build' not compatible with setting $GO_GCFLAGS #73045
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Testing
An issue that has been verified to require only test changes, not just a test failure.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Go version
go version go1.22.8 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
Run tests in
test/
usingcmd/internal/testdir
with additional gcflags passed byGO_GCFLAGS
.What did you see happen?
cmd/internal/testdir
obtains gcflags from the env variableGO_GCFLAGS
, but the tool chain refuses to build and run tests if it detectsGO_GCFLAGS
. In my understanding,testdir
cannot make use ofGO_GCFLAGS
. We may need another way to pass gcflags to the underlying tests.What did you expect to see?
Successfully run tests using
cmd/internal/testdir
withGO_GCFLAGS
.The text was updated successfully, but these errors were encountered: