Go get in local build


#1

I try to build the circleci-demo-go project locally with the circleci build command but I get an error:
package github.com/jstemmer/go-junit-report: mkdir /go/src/github.com/jstemmer/: permission denied

If I do a ls -la /go/src/ I see that the github.com is owned be root, so the error makes sense.

What’s the recommended way to build go based projects locally when one wants to use go binaries like go-junit-report?


#2

Seems like the problem is that the mounting of the project folder as working_directory in the build container and that becoming the base for GOPATH or something. When I print ls -la /go/src/github.com/ as a - run command it shows that that folder is owned by root.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.