Skip to content

x/tools/internal/gcimporter: TestImportTypeparamTests depends on GOROOT/test/typeparam #70081

@hyangah

Description

@hyangah

https://github.com/golang/tools/blob/73d6794ebbd4a16f44bdf838c2aa5fe79a63830d/internal/gcimporter/gcimporter_test.go#L197

I don't know if this test is still relevant. But I noticed that this test tries to read the directory runtime.GOROOT()/test/typeparam.
However, this test/typeparam directory does not exist in the toolchain module downloaded from the module proxy.

For example, inspect https://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.22.0.darwin-amd64.zip

So, if the test runs with the toolchain downloaded from the module proxy (with toolchain switch), that can cause test failure.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeToolsThis 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