Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: improve error message when a package does not exist #30723
What did you do?
In a simple Go program I have a misspelled package import.
package main import "logz"
What did you expect to see?
The go tool should report an error message with the file, line and column where the error occurred.
What did you see instead?
There is no additional information; just the module where the problem occurred and the error message.
@manishmshiva You're welcome to take a look. I'm not sure if I'll get to this for a few days.
This error is reported by the build list loading code in src/cmd/go/internal/modload/load.go. Some additional plumbing will be required to store the import positions.