Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go list -json -compiled -test -e upspin.io/test fails with non-zero exit status #27097
What version of Go are you using (
Furthermore, this happens even for "upspin.io/...".
and the exit status is 1.
The result is independent of the -json flag; it's the -compiled flag that causes go list to attempt a build, and a build of a tests-only package fails ("no non-test Go files"). For golang.org/x/tools/go/packages, the desired outcome is that go list succeeds, reporting an empty Package.Target field and no errors.
(Ignoring the needs of go/packages, there would be a certain consistency if