Skip to content

cmd/internal/testdir: testenv.go:166: skipping test: 'go build' not compatible with setting $GO_GCFLAGS #73045

@tianxiaogu

Description

@tianxiaogu

Go version

go version go1.22.8 darwin/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''

What did you do?

Run tests in test/ using cmd/internal/testdir with additional gcflags passed by GO_GCFLAGS.

What did you see happen?

cmd/internal/testdir obtains gcflags from the env variable GO_GCFLAGS, but the tool chain refuses to build and run tests if it detects GO_GCFLAGS. In my understanding, testdir cannot make use of GO_GCFLAGS. We may need another way to pass gcflags to the underlying tests.

testenv.go:166: skipping test: 'go build' not compatible with setting $GO_GCFLAGS

What did you expect to see?

Successfully run tests using cmd/internal/testdir with GO_GCFLAGS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.TestingAn issue that has been verified to require only test changes, not just a test failure.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions