Skip to content

Unable to lookup Go modules in private projects in self-hosted GitLab #32125

Discussion options

You must be logged in to vote

Hey @robbie-demuth,
when it comes to self-hosted GitLab with nested projects an Go, this can be a nightmare - I can absolutely understand your journey. We are successfully running this setup (despite a small issue we are currently facing), here is what we have configured:

Go environment variables

variables:
  GOPROXY: "https://proxy.golang.org,direct"
  GOPRIVATE: "git.dev.local"

We want to make sure that our internal packages are not fetched via any proxy.

.netrc for authentication part 1

before_script:
  # Create .netrc file for Go dependencies in GitLab
  - echo -e "machine git.dev.local\nlogin ${RENOVATE_USER}\npassword ${RENOVATE_TOKEN}" > ~/.netrc

As you already mentioned this is re…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@robbie-demuth
Comment options

@rarkins
Comment options

@rarkins
Comment options

@malmor
Comment options

Answer selected by robbie-demuth
@robbie-demuth
Comment options

@malmor
Comment options

@rarkins
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants