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

[CI] Sanitize version from branch name #11294

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Conversation

straight-shoota
Copy link
Member

For maintenance builds, the Crystal version is derived from the branch name. But some characters we typically use in branch names are not valid in some places where the version value is used.
There had already been some sanitizing (replace / by - and strip leading release/). This patch adds replacing _ by -. The latter has caused issues in crystal-lang/distribution-scripts#143 (comment) and the succeeding workflow https://app.circleci.com/pipelines/github/crystal-lang/crystal/6981/workflows/94c27061-f6c0-4e12-b58b-252c9a03c39d shows that the change was successful.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:infrastructure labels Oct 7, 2021
@straight-shoota straight-shoota added this to the 1.2.0 milestone Oct 7, 2021
@straight-shoota straight-shoota merged commit 175d443 into master Oct 8, 2021
@straight-shoota straight-shoota deleted the ci/fix-quirky_branch branch October 8, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants