Private Go modules in GitLab CI/CD

This took way too long for me to figure out, so here&rsquo;s how to install private Go modules in GitLab CI/CD pipeline jobs: netrc and GOPRIVATE Add the following to the jobs that require installing dependencies and replace <namespace> with your organization or username which hosts the private Go modules: