-
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: diagnose packages listed in lexically-impossible modules in vendor/modules.txt #45649
Comments
this seems to happen only with |
If I understand correctly, the The Note that
Perhaps we should validate that the |
Kubernetes uses At the time we adopted go modules (~go1.11-go1.12 timeframe), Is the generated |
oh, funny... Kubernetes merged support for modules on 4/3/2019 (kubernetes/kubernetes#74877), go started sorting on 4/30/2019 (https://go-review.googlesource.com/c/go/+/174527). I'll happily drop our post-vendor sorting. |
I think you're right, it was probably just package-level, which was still painful. Glad to clean that up. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Moved from https://groups.google.com/u/1/g/golang-nuts/c/04MtZ96TPWo
I checked out the kubernetes project at tag v1.20.4.
Then run "go list -deps -json ./... > json.txt" in the project root.
In the produced json.txt file, I noticed that the module path for
two packages look not right. The path of a package should be
prefixed with its module path. But the two aren't. Bug?
The first:
The second:
What did you expect to see?
The path of a package should be prefixed with the path of its containing module.
What did you see instead?
The paths of two 2 packages are not prefixed with their module paths.
The text was updated successfully, but these errors were encountered: