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

change-version.js: handle rubygems specific version number #38452

Merged

Conversation

julien-deramond
Copy link
Member

Description

In fe0c743, we are changing the current_ruby_version value to "5.3.0.alpha3".

When we will run npm run release-version 5.3.0-alpha3 5.3.0, config.yml won't be modified for current_ruby_version because it won't match 5.3.0-alpha3.

This PR is a very naive approach to handling this specific use case.
It is probably more a ping for you @XhmikosR than a real solution.
Feel free to change it or close it if not necessary.

@julien-deramond julien-deramond changed the title . Handle Ruby specific version number in change-version.js Apr 12, 2023
build/change-version.js Outdated Show resolved Hide resolved
@XhmikosR
Copy link
Member

Yeah, unfortunately, this doesn't work in the sense that it will still produce the wrong version for rubygems.

I fixed it, but I'm not sure I like the g flag, but maybe it's OK since it does the job now.

@XhmikosR XhmikosR changed the title Handle Ruby specific version number in change-version.js change-version.js: handle rubygems specific version number Apr 12, 2023
@XhmikosR XhmikosR changed the title change-version.js: handle rubygems specific version number change-version.js: handle rubygems specific version number Apr 12, 2023
@XhmikosR XhmikosR marked this pull request as ready for review April 12, 2023 19:55
@XhmikosR XhmikosR requested a review from a team as a code owner April 12, 2023 19:55
@XhmikosR XhmikosR merged commit b4befee into main Apr 12, 2023
@XhmikosR XhmikosR deleted the main-jd-handle-ruby-versioning-in-change-version-script branch April 12, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants