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: missing import stack for 'no buildable source files' error #9558

Closed
btracey opened this issue Jan 10, 2015 · 2 comments
Closed

cmd/go: missing import stack for 'no buildable source files' error #9558

btracey opened this issue Jan 10, 2015 · 2 comments
Milestone

Comments

@btracey
Copy link
Contributor

btracey commented Jan 10, 2015

Some packages that my code depends on went through breaking changes, which caused the disappearance of "github.com/gonum/blas/goblas". When I build my code, I get the error

brendan:~/Documents/mygo/src/github.com/reggo/reggo/supervised/nnet$ go test 
go build github.com/gonum/blas/goblas: no buildable Go source files in /Users/brendan/Documents/mygo/src/github.com/gonum/blas/goblas
FAIL    github.com/reggo/reggo/supervised/nnet [build failed]

Which is exactly the error one would expect. However, there is no explicit dependence of supervised/nnet on gonum/blas/goblas, and I had to manually hunt through the import path to find the actual dependency. Could this error be enhanced to show which package tries to import a non-existant package? I'm thinking something along the lines of

go build github.com/gonum/blas/goblas: no buildable Go source files in 
/Users/brendan/Documents/mygo/src/github.com/gonum/blas/goblas
 (imported by /Users/brendan/Documents/mygo/src/github.com/reggo/reggo/common/regtest)
@ianlancetaylor ianlancetaylor changed the title cmd/gc: add extra labeling for no buildable source files cmd/go: add extra labeling for no buildable source files Jan 10, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.5 milestone Jan 10, 2015
@rsc rsc removed the repo-main label Apr 14, 2015
@rsc rsc changed the title cmd/go: add extra labeling for no buildable source files cmd/go: missing import stack for 'no buildable source files' error Jun 29, 2015
@rsc
Copy link
Contributor

rsc commented Jun 29, 2015

See also #11456.

@gopherbot
Copy link

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

@rsc rsc closed this as completed in f849f6b Jul 15, 2015
@golang golang locked and limited conversation to collaborators Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants