Vendor-isolated buld of Golang program
Hi there! I am trying to package the program built with Golang. I included the vendor code package inside the source archive, and added the following lines to my rules file:
$(eval PATH := /usr/lib/
export GOPATH="./gopath"
go env -w GOPATH='./gopath'
go env -w GOFLAGS=
go env -w GOBIN=''
go env -w GOCACHE='./gocache'
to prevent the Go compiler from trying to access the network. However, I see that the build fails due to insufficient permissions (the log is available here - https:/
go env -w GOFLAGS=
go: go: could not create module cache: mkdir /sbuild-
make[1]: *** [debian/rules:7: build] Error 1
Could you point me to any possible workaround for this error?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Andrey Vukolov
- Solved:
- Last query:
- Last reply: