-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fix rare issue with canary id from git sha #2448
Fix rare issue with canary id from git sha #2448
Conversation
…ly numbers and begins with 0, SemVer will reject the canaryIdentifier. In such cases, make sure we include enough of the sha to get a letter.
@hipstersmoothie Not sure how you'd actually want to solve this case, but figured I'd throw an attempt at it could also do the two regexes for reference: full |
@MichaelRyanWebber this looks great! such an odd issues to hit. my only note is a comment here would be nice |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2448 +/- ##
==========================================
- Coverage 80.63% 80.55% -0.08%
==========================================
Files 69 69
Lines 5680 5683 +3
Branches 1335 1336 +1
==========================================
- Hits 4580 4578 -2
- Misses 718 719 +1
- Partials 382 386 +4 ☔ View full report in Codecov by Sentry. |
Once you add the comment I'll merge |
@hipstersmoothie added a comment. lmk if that seems clear enough! |
It's out 🎉 |
Hi @hipstersmoothie, release of this changes doesn't have the binaries attached as assets: https://github.com/intuit/auto/releases/tag/v11.1.3 |
In the rare case that the first 7 characters of a git sha contains only numbers and begins with 0, SemVer will reject the canary (due to this part of the canaryIdentifier) as an invalid version.
In such cases, make sure we include enough of the sha to get a letter.
Ignore the ~1:1.5billion chance that SHA is all numbers starting with 0, but optionally the sha could be replaced with the string
jackpot
Todo:
Change Type
Indicate the type of change your pull request is:
documentation
patch
minor
major