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

Use uint16_t instead of uint8_t for semver tokens #39

Merged
merged 7 commits into from
May 27, 2023

Conversation

TylerJang27
Copy link
Contributor

Use uint16_t to expand valid semver to range from 0.0.0 to 65535.65535.65535 (rather than to 255.255.255). This also applies to prerelease version numbers.

This was a problem for tools like ruff, which is now at 0.0.270, as well as circleci, which is now at v0.1.26837. Using 2 bytes to represent each of the semver tokens should resolve this problem, as well as most other tools.

@TylerJang27 TylerJang27 marked this pull request as draft May 26, 2023 23:37
@TylerJang27 TylerJang27 force-pushed the larger-release-tokens branch 2 times, most recently from 64a44f2 to b0d3bcc Compare May 27, 2023 00:56
@TylerJang27 TylerJang27 marked this pull request as ready for review May 27, 2023 01:16
@Neargye Neargye merged commit 02f52e9 into Neargye:master May 27, 2023
16 of 22 checks passed
@Neargye
Copy link
Owner

Neargye commented May 27, 2023

Thanks!

@Neargye
Copy link
Owner

Neargye commented May 27, 2023

In general, can immediately uint32_t

gcyrus added a commit to gcyrus/semver that referenced this pull request Oct 5, 2023
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.

None yet

2 participants