You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm extremely new to Golang, I don't know if this has room for these notes. Feel free to close the issue if it's not appropriate.
When containerizing the example code and you are using a private repository.
Since I'm not an expert in Golang I had a hard time understanding why running on host was trying to pull the code from bitbucket.
In order to fix that, I cloned the repo inside $GOPATH/src/[bitbucket.org|github.com|gitlab.com] like https://golang.org/doc/gopath_code.html
If you are using a private repo to test out this code, you will need to do a couple of changes.
Set the env for GOPRIVATE
When adding the files inside the container, place them inside /go/src/ following the same path you used because the go.mod in this repo is pointing to a public repo, but you are using a private repo so you will try to fetch from the repo instead of pulling from the fs
I've also submitted a PR for a minor warning that popups when compiling the proto following this guide, that is #28
We weren't looking at things from the perspective of a private repo when writing these tutorials, but it certainly seems like something that a lot of people might be interested in. If you'd like to contribute your insight on what changes needed to be made to deploy from a private repo, we'd happily accept a pull request. 🙂
I'm extremely new to Golang, I don't know if this has room for these notes. Feel free to close the issue if it's not appropriate.
When containerizing the example code and you are using a private repository.
Since I'm not an expert in Golang I had a hard time understanding why running on host was trying to pull the code from bitbucket.
In order to fix that, I cloned the repo inside $GOPATH/src/[bitbucket.org|github.com|gitlab.com] like https://golang.org/doc/gopath_code.html
If you are using a private repo to test out this code, you will need to do a couple of changes.
Set the env for GOPRIVATE
ENV GOPRIVATE="domain.tld/your-name/your-project-name"
When adding the files inside the container, place them inside /go/src/ following the same path you used because the go.mod in this repo is pointing to a public repo, but you are using a private repo so you will try to fetch from the repo instead of pulling from the fs
I've also submitted a PR for a minor warning that popups when compiling the proto following this guide, that is #28
I'm using go 1.14 and this is my go env
The text was updated successfully, but these errors were encountered: