-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: when 'go build' run in directory with go.mod and no .go files: "cannot find module for path ." #35414
Comments
I believe we fixed some related bugs in 1.13. What happens if you try this with the current release (Go 1.13.4)? |
Hi @bcmills [myname@mycompany myproject]$ ll go 1.13 |
Change https://golang.org/cl/206902 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to put several common modules into one repo.
So the repo layout looks like below:
The go.mod file looks like:
Run "go build" under directory common-modules.
What did you expect to see?
No error is returned.
What did you see instead?
If I run "go build" under directory common-modules, error returns:
can't load package: package company1.com/common-modules: unknown import path "company1.com/common-modules": cannot find module providing package company1.com/common-modules
The text was updated successfully, but these errors were encountered: