Skip to content

Conversation

@scop
Copy link
Contributor

@scop scop commented Dec 12, 2025

Changes

The go.yaml.in/yaml/vX Go module supersedes gopkg.in/yaml.vX.

This is a widely used Go module, and therefore would be nice to have Renovate suggest the replacement.

Refs

Discussion: #39942

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • 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.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

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

The public repository:

@scop
Copy link
Contributor Author

scop commented Dec 12, 2025

Caveat: this is currently untested, therefore setting draft and adding some notes.

@scop scop marked this pull request as draft December 12, 2025 12:42
Comment on lines +714 to +716
"matchDatasources": ["go"],
"matchPackageNames": ["gopkg.in/yaml.v2"],
"replacementName": "go.yaml.in/yaml/v2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we should have some versions set here. The first usable version of the v2 replacement is 2.4.1 -- even though there are earlier ones, they were labeled as the original package. 2.4.0 is the last version in the original.

Comment on lines +719 to +721
"matchDatasources": ["go"],
"matchPackageNames": ["gopkg.in/yaml.v3"],
"replacementName": "go.yaml.in/yaml/v3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly as for v2, I'm not sure if we should have some versions set here. The first usable version of the v3 replacement is 3.0.2, and 3.0.1 is the last version in the original.

@jamietanna
Copy link
Contributor

Per #39942 (comment) this would be good - but isn't right now supported with Renovate's Go module management - if we can get that added first, I'd very much like to get this change in!

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