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
[Build] Could not build binary from source code. #5
Comments
Please try this:
|
3 errors occurred: --> darwin/amd64 error: exit status 1 Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/goloc" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/goloc (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/goloc (from $GOPATH) main.go:7:2: cannot find package "github.com/s0nerik/goloc/platforms/resolver" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/platforms/resolver (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/platforms/resolver (from $GOPATH) main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT) /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH) --> linux/amd64 error: exit status 1 Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/goloc" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/goloc (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/goloc (from $GOPATH) main.go:7:2: cannot find package "github.com/s0nerik/goloc/platforms/resolver" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/platforms/resolver (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/platforms/resolver (from $GOPATH) main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT) /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH) --> windows/amd64 error: exit status 1 Stderr: main.go:6:2: cannot find package "github.com/s0nerik/goloc/goloc" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/goloc (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/goloc (from $GOPATH) main.go:7:2: cannot find package "github.com/s0nerik/goloc/platforms/resolver" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/github.com/s0nerik/goloc/platforms/resolver (from $GOROOT) /Users/MSavisko/go/src/github.com/s0nerik/goloc/platforms/resolver (from $GOPATH) main.go:8:2: cannot find package "gopkg.in/alecthomas/kingpin.v2" in any of: /usr/local/Cellar/go/1.10.2/libexec/src/gopkg.in/alecthomas/kingpin.v2 (from $GOROOT) /Users/MSavisko/go/src/gopkg.in/alecthomas/kingpin.v2 (from $GOPATH) |
Probably the main problem is that you've cloned a project into an arbitrary folder, and not to GOPATH. To make sure that the project is cloned into the right directory, instead of cloning by hand you should run |
Glad |
Problem:
Could not build the binary from source code.
Configuration:
The text was updated successfully, but these errors were encountered: