How to access private repos in Go
When downloading packages, Go checks the public Go Checksum Database to verify the package checksum. Private Git packages, such as those on a private GitLab instance, aren’t in that database, so downloading them will fail. This can be fixed by setting GOPRIVATE=private.example.com. This instructs Go not to check the Checksum Database for packages in the private.example.com domain. For GitLab, first set up access to repositories: Create a GitLab Access Token with the read_api scope. Update your ${HOME}/.netrc file, and add: machine private.example.com login your.email@example.com password gitlab_access_token More information can be found in the GitLab documentation. ...