Skip to content

feat: add a replace command that can be used to handle module relocation and rename#1

Merged
fr12k merged 8 commits into
masterfrom
fr12k_replace
Nov 2, 2025
Merged

feat: add a replace command that can be used to handle module relocation and rename#1
fr12k merged 8 commits into
masterfrom
fr12k_replace

Conversation

@fr12k
Copy link
Copy Markdown

@fr12k fr12k commented Nov 2, 2025

Original PR: marwan-at-work#26

From @xNok:

I discovered your utility via Renovate, which uses it to handle the major upgrade workflow. The module is conveniently called mod, so it could be extended to auto-resolve all the mod-related issues.

Renovate recently introduced the "replacement" feature that can be used to update the dependencies for which the package name has changed. Unfortunately, the gomod manager is not supported, so I am planning to do the work and get it implemented.

There are a few cases where this happens in go

Repository changes owners or is given to a different organisation
Migration to a different repository hosting solution Github <-> Gitlab <-> Bitbucket <-> etc
Introducing registry or vanity URLs.

My renovate branch for this feature: https://github.com/xNok/renovate/tree/replacement-for-gomod

xNok and others added 8 commits November 2, 2025 11:38
Upgrade Go module dependencies to their latest versions.

- Upgraded dependencies:
  - goquery to v1.10.3
  - go-github to v76.0.0
  - cli to v2.27.7
  - golang.org/x/mod to v0.29.0
  - golang.org/x/oauth2 to v0.32.0
  - golang.org/x/tools to v0.38.0
@fr12k fr12k changed the title feat(replace): add the replace command feat: add a replace command that can be used to handle module relocation and rename Nov 2, 2025
@fr12k fr12k merged commit f63787f into master Nov 2, 2025
@fr12k fr12k deleted the fr12k_replace branch November 2, 2025 10:42
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.

4 participants