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

Make rlx_util:parse_vsn parse integer versions #911

Closed
wants to merge 2 commits into from
Closed

Conversation

essen
Copy link
Contributor

@essen essen commented Apr 27, 2022

This allows using integer release versions "1", "2" and so on instead of semver, like was possible in Relx 3. In current main branch this only seems to be an issue when creating relups without providing the previous version, in that case the crash happens at https://github.com/erlware/relx/blob/main/src/rlx_relup.erl#L95

I have also changed the returned value 0 because it resulted in unhelpful crashes down the line because the code didn't expect an integer but a tuple.

Tested against Erlang.mk tests.

@essen
Copy link
Contributor Author

essen commented Apr 29, 2022

I'll resubmit the two fixes as two separate PRs.

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.

1 participant