Skip to content

x/tools/internal/gcimporter: TestIExportData_stdlib test fails with GOTOOLCHAIN override #78644

Description

@hyangah

I use GOTOOLCHAIN to switch toolchain version. (easiest, recommended way to pick up latest go toolchain inside google).

$ GOTOOLCHAIN=local go version
go version go1.25.6 darwin/arm64
$ go env -changed
GOTOOLCHAIN='go1.26.2+auto'

This specific test doesn't work with this arrangement.

--- FAIL: TestIExportData_stdlib (0.02s)
    iexport_test.go:73: err: exit status 1: stderr: go: overlay contains a replacement for /Users/hyangah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.2.darwin-arm64/src/errors/bad.go. Files beneath GOMODCACHE (/Users/hyangah/go/pkg/mod) must not be replaced.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions