Skip to content
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

renovate: more robust parser for Go version in go.mod #3401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Feb 14, 2025

Go automatically removes the toolchain when the go version is equal to the toolchain version so let's do best effort: try to parse the toolchain directive, if it fails, parse the golang version directive directly.

Go automatically removes the toolchain when the go version is equal to
the toolchain version so let's do best effort: try to parse the
toolchain directive, if it fails, parse the golang version directive
directly.

Signed-off-by: Mahe Tardy <[email protected]>
@mtardy mtardy added area/ci Related to CI release-note/ci This PR makes changes to the CI. labels Feb 14, 2025
@mtardy mtardy marked this pull request as ready for review February 14, 2025 17:40
@mtardy mtardy requested a review from a team as a code owner February 14, 2025 17:40
@mtardy
Copy link
Member Author

mtardy commented Feb 14, 2025

Needed for #3361.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Related to CI release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant