Skip to content
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: exit codes in packages with tests but no source files #15093

Closed
broady opened this issue Apr 4, 2016 · 2 comments
Closed

cmd/go: exit codes in packages with tests but no source files #15093

broady opened this issue Apr 4, 2016 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@broady
Copy link
Contributor

broady commented Apr 4, 2016

go get makes it difficult to have a directory with tests but no source files.

For example, golang.org/x/tour/content has content_test.go but no other Go files.

$ go get -t golang.org/x/tour/...; echo $?
go build golang.org/x/tour/content: no buildable Go source files in /usr/local/google/home/cbro/src/golang.org/x/tour/content
1

go version devel +edb19aa Fri Mar 25 18:35:15 2016 +0000 linux/amd64

@bradfitz bradfitz added this to the Go1.7 milestone Apr 7, 2016
@rsc
Copy link
Contributor

rsc commented May 17, 2016

This would be nice to fix if it is trivial. It may not be.

@gopherbot
Copy link

CL https://golang.org/cl/23314 mentions this issue.

@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label May 26, 2016
@rsc rsc modified the milestones: Go1.8, Go1.7 May 27, 2016
@golang golang locked and limited conversation to collaborators Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

5 participants