-
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: misleading 'use of internal package not allowed' in GOPATH mode when a subtree vendors its own package #34558
Comments
It sounds like Have you tried it with the latest Go release ( |
Getting same error message with go version go vet -composites=false ./... cmd/test-driver/main.go:13:2: use of internal package github.com/wavefrontHQ/wavefront-kubernetes-collector/vendor/github.com/wavefronthq/wavefront-kubernetes-collector/internal/options not allowed cmd/wavefront-collector/main.go:21:2: use of internal package github.com/wavefrontHQ/wavefront-kubernetes-collector/vendor/github.com/wavefronthq/wavefront-kubernetes-collector/internal/agent not allowed |
@srinivas-kandula, can you confirm whether your repo's top-level |
@bcmills Appreciate your quick replies.. yup it contains those directories. $ ls cmd deploy docs Gopkg.lock Gopkg.toml internal LICENSE Makefile open_source_licenes.txt plugins README.md vendor Vendor directory $ls internal LICENSE plugins |
The fix on the (Probably this will just be closed when GOPATH mode is deprecated, but you're welcome to close it earlier if you like, or contribute a short-lived fix if it is not too invasive.) |
I think the real issue is with |
As a workaround, you could |
Closing 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
)?RHEL 8 (Ootpa)
go env
OutputWhat did you do?
What did you expect to see?
I was expecting the build to be successful
What did you see instead?
The text was updated successfully, but these errors were encountered: