Skip to content

fix: version.sh preserve v prefix and correctly bump integer on major bump #44

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Aug 5, 2025

Take a look: https://onlinegdb.com/GBEi-HK_K

The minor and patch bumps are ok, as they take the first argument as is. The major bump does $1 + 1. The first argument is v#, which is a string. And awk treats string + 1 = 1.

So this only affects the major bump.

@Emyrk Emyrk marked this pull request as ready for review August 6, 2025 14:56
@Emyrk Emyrk requested a review from dannykopping as a code owner August 6, 2025 14:56
@Emyrk Emyrk merged commit ad8f692 into main Aug 6, 2025
1 check passed
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