Closed eminence closed 5 years ago
Did you set the $GOPATH? https://github.com/golang/go/wiki/SettingGOPATH
No, I had not set GOPATH. That fixed the build problem. Thanks
This does not work for me. If I set GOPATH
to the root project directory, ~it looks in src
, not in vendor
. If I set GOPATH
to the vendor
directory, it looks in vendor/src
. What am I doing wrong?~
Edit: Ok, I mixed things up a bit. I only got it working now by using the folder structure src/github.com/sapcc/mosquitto-exporter/<project>
. Is this really necessary? Can't I just put this project source in any directory? How can I avoid this?
I am not very familiar with go, so I'm not sure how to debug this.
I git cloned your repository, and then tried to run
make build
. I get these errors:I'm using this version of go:
Any suggestions?