Why is this issue closed? The makefile still does not work out of the box.
go build -o gitlab-pages --ldflags="-X main.VERSION=0.4.1 -X main.REVISION=043be6d"daemon.go:15:2: cannot find package "github.com/kardianos/osext" in any of: /usr/lib/go-1.6/src/github.com/kardianos/osext (from $GOROOT) ($GOPATH not set)app.go:12:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of: /usr/lib/go-1.6/src/github.com/prometheus/client_golang/prometheus (from $GOROOT) ($GOPATH not set)app.go:13:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of: /usr/lib/go-1.6/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT) ($GOPATH not set)app.go:14:2: cannot find package "gitlab.com/gitlab-org/gitlab-pages/metrics" in any of: /usr/lib/go-1.6/src/gitlab.com/gitlab-org/gitlab-pages/metrics (from $GOROOT) ($GOPATH not set)server.go:6:2: cannot find package "golang.org/x/net/http2" in any of: /usr/lib/go-1.6/src/golang.org/x/net/http2 (from $GOROOT) ($GOPATH not set)Makefile:19: recipe for target 'gitlab-pages' failedmake: *** [gitlab-pages] Error 1
I wonder the same thing. Anyone figured out how to compile this project. I followed the official doc make and the README within this project to direct call go build both times failing. Very sad that this repo is not building correctly as all the other tools within the gitlab eco system are a breeze to setup and run without issues.
I'm trying to install GitLab Page for Source Installation and i get the same issue :
Please find below the Go Version installed :
Below, is the result of fourth command of Install the Pages daemon instructions
UPDATE : I copied all vendor resources in /usr/local/go/src folder.
I copied internal and metrics in folder /usr/local/go/src/gitlab.com/gitlab-org/gitlab-pages/ and i get result :
OK, I'm reopening this. We should get make to do the necessary work to set up a gopath behind the scenes in the same way workhorse, gitaly, the indexer, etc, do.