x/tools/gopls: imports older modules #67345
Labels
gopls/imports
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go version
go version go1.22.2 darwin/arm64, golang.org/x/tools/gopls v0.15.2
Output of
go env
in your module/workspace:What did you do?
import "github.com/jzelinskie/cobrautil/v2/cobraotel"
).I'm not fully sure these are the minimum steps to reproduce, but I believe so. It might have to do with that's in your module cache, too.
I've had this cause issues in production because it slipped past code review because of how dependent folks are on for import tooling and linters on imports -- humans barely look at them.
What did you see happen?
The v1 module is imported
What did you expect to see?
The v2 module should be imported because it's already being used:
The text was updated successfully, but these errors were encountered: