New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/go/packages: Config.Env doesn't support -modfile #48482
Comments
@golang/tools-team |
go/packages runs a number of Go command invocations, not just one, so the |
Isn't the point of GOFLAGS to affect all go tool invocations, and be ignored for the irrelevant? From the error message (
Not for my use case, where I want a command line tool (
|
The issue is that https://pkg.go.dev/golang.org/x/tools/internal/gocommand#GoVersion runs with |
Any progress on this issue? |
I'd like to support GOFLAGS=-modfile=... from tools that use packages.Load, but perhaps more concerning is that the error message indicates some go tool commands are run in non-module mode.
The text was updated successfully, but these errors were encountered: