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

Strip patch version off Go version #1702

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Strip patch version off Go version #1702

merged 1 commit into from
Aug 19, 2024

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Aug 19, 2024

Summary

The input version is two digits (major.minor), but for some buildpacks the version in the go.mod file has three digits. This didn't actually change the go.mod file, but it caused a mismatch if old/new versions, which caused the wrong title to be filed on PRs.

Stripping off the patch version of the go version read out of the go.mod file should enable it to match unless the major.minor is different.

The input version is two digits (major.minor), but for some buildpacks the version in the go.mod file has three digits. This didn't actually change the go.mod file, but it caused a mismatch if old/new versions, which caused the wrong title to be filed on PRs.

Stripping off the patch version of the go version read out of the go.mod file should enable it to match unless the major.minor is different.

Signed-off-by: Daniel Mikusa <dan@mikusa.com>
@dmikusa dmikusa added type:bug A general bug semver:patch A change requiring a patch version bump labels Aug 19, 2024
@dmikusa dmikusa requested a review from a team as a code owner August 19, 2024 03:02
@anthonydahanne anthonydahanne merged commit 3c2b1f0 into main Aug 19, 2024
6 checks passed
@anthonydahanne anthonydahanne deleted the fix-go-update branch August 19, 2024 13:45
This was referenced Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants