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
Compiling from source not working #138
Comments
This is typically a configuration error related to GOPATH. Type the following into your terminal window: go env You should get something similar to this: GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/dcarroll/go:/Users/dcarroll/Documents/Projects/goforce/mergeplace/force"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1" Give a try and post what you get. |
Thanks for the reply, @dcarroll. I thought my env was properly set up. This is how it looks:
|
Are you doing go get from the gopath folder? |
Yes. Though I see that github.com/ddollar/config hasn't change for a while. Initially I thought there might be a problem with the dependencies, but it might just be my environment. Feel free to close this issue if you cannot reproduce it. |
I was able to compile it once with The error itself makes sense, as a function with the same signature and in the same package is declared twice (once in windows.go and once in posix.go). For reference, this seems to be the same issue reported at #130. |
Here is a link to the https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies As to the fact that the error makes sense, this link should illustrate that this is a valid approach to go. |
If I read http://golang.org/pkg/go/build/#hdr-Build_Constraints correctly, the problem is that the file is named "windows.go" but implicit build constraints only kick in when the os/arch is preceded by an underscore: $ pwd nothing to commit, working directory clean github.com/ddollar/config./windows.go:8: (*Config).homeDirectory redeclared in this block |
I ran into the same issue trying to build from source. I resolved it by removing "windows.go" from the project, as suggested by another commenter. I am building on MacOS. |
A better solution is to add the build constraint // +build windows On Thu, Aug 13, 2015 at 11:14 AM, ccotofana notifications@github.com
Thanks, |
Running
go get -u github.com/heroku/force
produces an error:The text was updated successfully, but these errors were encountered: