Skip to content
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

go/types, types2: "import path cannot be absolute path" error not reported #43109

griesemer opened this issue Dec 10, 2020 · 0 comments


Copy link

@griesemer griesemer commented Dec 10, 2020


package main
import "/foo"

the compiler reports:

main.go:2:8: import path cannot be absolute path

Both go/types and types2 report:

main.go:2:8: could not import /foo (can't find import: "/foo")
main.go:2:8: "/foo" imported and not used

Generally, should review all import path errors.

cc: @findleyr

@griesemer griesemer added the NeedsFix label Dec 10, 2020
@griesemer griesemer added this to the Go1.17 milestone Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.