Build instructions
Please provide instructions for building the runner from sources.
I am trying to build a patched version on mac. What I did so far:
- Installed go.
- Added /usr/local/go/bin to the PATH.
- Set GOPATH to ~/.go
- Added $GOPATH/bin to the PATH.
- Installed mercurial.
- Ran make.
(Not in this order.)
I get this error:
bash-3.2$ make
# Installing dependencies...
go get github.com/tools/godep
go get -u github.com/golang/lint/golint
go get github.com/mitchellh/gox
go get code.google.com/p/winsvc/eventlog
package code.google.com/p/winsvc/eventlog
imports code.google.com/p/winsvc/eventlog
imports code.google.com/p/winsvc/eventlog: no buildable Go source files in /Users/gitlab-runner/.go/src/code.google.com/p/winsvc/eventlog
make: [deps] Error 1 (ignored)
godep restore
# Running tests...
go test
main.go:11:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands (from $GOPATH)
main.go:12:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/common" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/common (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/common (from $GOPATH)
main.go:13:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/docker" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/docker (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/docker (from $GOPATH)
main.go:14:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/parallels" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/parallels (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/parallels (from $GOPATH)
main.go:15:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/shell" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/shell (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/shell (from $GOPATH)
main.go:16:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/ssh" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/ssh (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/executors/ssh (from $GOPATH)
main.go:17:2: cannot find package "gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells" in any of:
/usr/local/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells (from $GOROOT)
/Users/gitlab-runner/.go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/shells (from $GOPATH)
make: *** [test] Error 1
bash-3.2$
Thanks