Skip to content

Instructions in Development section of README not working #197

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

Closed
hannobraun opened this issue Jan 23, 2018 · 1 comment
Closed

Instructions in Development section of README not working #197

hannobraun opened this issue Jan 23, 2018 · 1 comment

Comments

@hannobraun
Copy link
Contributor

hannobraun commented Jan 23, 2018

Executing the instructions from the Development section of the README leads to an error:

$ git clone https://github.com/arduino/arduino-create-agent.git
$ cd arduino-create-agent/
$ export GOPATH=$PWD
$ go get

go install: no install location for directory /home/hanno/tmp/Projects/arduino-create-agent outside GOPATH
        For more details see: 'go help gopath'

The reasons for this error is, that the repository is not a properly set up GOPATH. The following works for me:

(edit: The following instructions are not fully correct. See my comment below.)

$ mkdir -p go/src
$ cd go/
$ export GOPATH=$PWD
$ cd src/
$ git clone https://github.com/arduino/arduino-create-agent.git
$ cd arduino-create-agent/
$ go get
$ go build

There's also mention of a script called compile_webidebridge.sh, which I didn't see anywhere.

@hannobraun
Copy link
Contributor Author

Please note that my workaround is wrong. Cloning arduino-create-agent into $GOPATH/src/arduino-create-agent, as I suggested, will prevent changes to the sub-packages from being picked up by the build tool, as the sub-packages are imported via GitHub, not their relative path.

The repository should be cloned into $GOPATH/src/github.com/arduino/arduino-create-agent, as per the Go conventions. It might be better to use go get for this, instead of doing it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant