-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include PR body note when Go implicitly increases the go mod directive #25047
Comments
Counter proposal: If |
No disagreement there, my comment has been solely about the implementation method.
|
I think only the manager knows if a particular change is worth a warning/note. So it should be able to return both indicators |
Reproduction repo: https://github.com/renovate-reproductions/25047 |
This is an issue we hit as well, it's annoying when maintaining stable branches with old Go versions like 1.18 for example, or even 1.20. We have PRs that are trying to upgrade just one dependency but the Go version constraint is ^directive (for example ^1.20), thus installing latest Go 1.21.x, thus updating the Go directive in the Would it be possible for the Go constraint to install the Go binaries to stick to the newest minor version instead of major maybe? I'm not entirely sure of why I observe this behavior because I was able to update only the dependencies manually with |
Create a reproduction to demonstrate/prove what you're claiming. Go is updating the go.mod directive, not Renovate. |
Interestingly it was caused by #26057, because we have a replace directive in some |
🎉 This issue has been resolved in version 37.378.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the proposed change(s).
As discussed in #24994, Go 1.21 can now implicitly increase the go mod directive in
go.mod
files if it detects that the current directive is wrong (too low), or if the upgrades in the PR require a newer Go version. In such cases the Go version change is not mentioned in the PR, but ideally it should be.I propose that the updateArtifacts() function can return a
prBodyNotes
value for such cases as a quick way to warn that the Go version was bumped as part of this PR.The text was updated successfully, but these errors were encountered: