feat: add a replace command that can be used to handle module relocation and rename by xNok · Pull Request #26 · marwan-at-work/mod · GitHub
Skip to content

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

Open
xNok wants to merge 5 commits into
marwan-at-work:masterfrom
xNok:replace-module
Open

xNok wants to merge 5 commits into
marwan-at-work:masterfrom
xNok:replace-module

Conversation

@xNok

@xNok xNok commented Feb 12, 2024

Copy link
Copy Markdown

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

@jamietanna

jamietanna commented Apr 20, 2025 •

Copy link
Copy Markdown

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.

2 participants