installed go
did go get gitlab/xxx/grafana (git repo successfully cloned ) go run build.go setup also works fine go run build.go build but build fails with below error
It does not matter if you get the code from GitHub or Gitlab - it is a Git repo either way.
But it is important what the GOPATH is set to and what the directories are called. Some options:
rename your local directory to $GOPATH/src/github.com/grafana/grafana
or symlink it: ln -s $GOPATH/src/gitlab.com/xxx/grafana $GOPATH/src/github.com/grafana/grafana
don’t fetch the repo using go get - use git clone instead
P.S. Another way to do it - go get from github then just add your gitlab repo as a git remote (keeping the $GOPATH/src/github.com/grafana/grafana directory structure)