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: go list -json -compiled -test -e upspin.io/test fails with non-zero exit status #27097
Comments
Furthermore, this happens even for "upspin.io/...". When running
and the exit status is 1. |
Even worse, |
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 Related: #27101 |
Change https://golang.org/cl/130135 mentions this issue: |
@gopherbot please open a backport for 1.11 |
Backport issue(s) opened: #27104 (for 1.11) Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/130139 mentions this issue: |
Change https://golang.org/cl/130617 mentions this issue: |
…ly tests Fixes #27097. Change-Id: I6aa48a1c58a21fd320b0e9dcd1f86c90172f0182 Reviewed-on: https://go-review.googlesource.com/130139 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit df6aedb) Reviewed-on: https://go-review.googlesource.com/130617 Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
What version of Go are you using (
go version
)?go version devel +88aa208 Mon Aug 20 08:01:43 2018 +0000 linux/amd64
What did you do?
What did you expect to see?
No error; the test package(s) to be returned
What did you see instead?
[] go list: exit status 1: go build upspin.io/test: no non-test Go files in /home/dominikh/prj/src/upspin.io/test
/cc @alandonovan @ianthehat @rsc
The text was updated successfully, but these errors were encountered: