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 get: is there any way that 'go get' can retrieve packages which have no buildable go source files #14764
Comments
If the package has no Go files, then you can't import it, so you have to use |
I think go get / go get -d can download anything if the
SCM is supported.
They will give out the error "no buildable Go source files",
but the content is still correctly cloned to $GOPATH.
|
thanks~ my scenario is using Makefile to build/deploy go projects.
if i want to build the project, i can simply type "make init". BUT, if the command "go get github.com/aa/bb" fails, it will break the process of making. although i can use "make -i init", but as a programmer, it feels uncomfortable to see any exceptions.😂 i want to know or as a suggestion, if go can provide any callbacks of cmd/go tools, so we can register some events to do specified functions |
go get is just a wrapper around git clone, why not call git clone explicity On Fri, Mar 11, 2016 at 3:18 PM, Hongjian Zhu notifications@github.com
|
That's really not what go get is for. Probably git clone is your best bet. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go1.6 darwin/amd64
go env
)?darwin/amd64
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
i have a package that it can generate some go source files using txt/template. Without initial makefile, it can't build at all which i intend to that.
it's just download package itself, without compile or build
package XXX: no buildable Go source files in ...
ps: go get -d also fails ...
The text was updated successfully, but these errors were encountered: