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

cmd/go: no helpful error message for "no Go files" with modules #27122

FiloSottile opened this Issue Aug 21, 2018 · 0 comments


None yet
1 participant

FiloSottile commented Aug 21, 2018

Without modules, the go tool informs me that I'm trying to build a package with no Go files:

$ go1.11rc1 build ./vcs-test
can't load package: package no Go files in /Users/filippo/src/

With modules, I get an obscure error:

$ GO111MODULE=on go1.11rc1 build ./vcs-test
go: finding latest
can't load package: package unknown import path "": cannot find module providing package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment