cmd/go: import of vendored package error "cannot find package" from testdata package #50143
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
./bin/go build cmd/testdata/foo
What did you expect to see?
Successful build
What did you see instead?
cmd/testdata/foo/main.go:4:2: cannot find package
Note that the binary in
cmd/foo
builds just fine. The only difference is that the former is in atestdata/
directory.golang.org/x/sys/unix
is vendored incmd/vendor/...
.cc @bcmills
The text was updated successfully, but these errors were encountered: