Skip to content

docs: document GitLab auth for private Go modules#44371

Open
k4l397 wants to merge 1 commit into
renovatebot:mainfrom
k4l397:docs/gitlab-go-private-auth
Open

docs: document GitLab auth for private Go modules#44371
k4l397 wants to merge 1 commit into
renovatebot:mainfrom
k4l397:docs/gitlab-go-private-auth

Conversation

@k4l397

@k4l397 k4l397 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Updates documentation to describe required setup for resolving modules in private gitlab repositories

Context

Private GitLab projects need a hostType: "go" host rule with a username and password so Renovate can authenticate the go-get request it uses to resolve a module's source repository. Without it GitLab returns a truncated go-import path for the unauthenticated request and the version lookup 404s.

Came up in discussion #37624 after the resolution change in #36963.

Please select one of the following:

  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):
    Used to verify what I wrote was accurate since it's been a while since I looked at this area - e.g. quick tests of the ?go-get behaviour. I did carefully review the output and have cut down a lot of what was written to what I considered useful to a user.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

No code changes - verified documentation as part of investigation in the linked discussion.

Private GitLab projects need a `hostType: "go"` host rule with a username and password so Renovate can authenticate the go-get request it uses to resolve a module's source repository. Without it GitLab returns a truncated go-import path for the unauthenticated request and the version lookup 404s.

Came up in discussion renovatebot#37624 after the resolution change in renovatebot#36963.
@github-actions github-actions Bot requested a review from viceice July 5, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant