-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support tag checker #33
Add support tag checker #33
Conversation
entrypoint.sh
Outdated
jq -r '.[] | .tag_name' | \ | ||
grep -oP '\d+\.\d+(\.\d+)?(-[^'\''\"\s]*)?$' | \ | ||
list_versions | \ | ||
grep -oP '\d+\.\d+(\.\d+)*(-[^'\''\"\s]*)?$' | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, wait. I noticed that you changed the regex too.
Can you revert the change or explain why you updated the regex?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
Some tags have been given a small version that deviates from the rules of semver, so I changed it.
Validity of change
Because, previouse commit split release(semver valid) and tag (semver deviate).
First, I think non-semver ruling tag(x.y.z.?) ignoring rule...but test case support non-semver(for -hoge suffix).
And I tried to support it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I guess I don't get it. Can you list actual real-world examples who uses x.y.z.?
?
Also, this repo doesn't intend to support non-semver in the first place, so can you propose a change separately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that -xyz suffix
is actually valid semver. https://semver.org/#spec-item-10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I get it. Hmm... 1.5.2.1 is a super weird tag name...
Ideally, I'd reject such inputs, but maybe it's fine to accept. I left a suggestion to make the regex simpler but LGTM other than that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree.
x.y.z.a ... can be simply drop away.
entrypoint.sh
Outdated
jq -r '.[] | .tag_name' | \ | ||
grep -oP '\d+\.\d+(\.\d+)?(-[^'\''\"\s]*)?$' | \ | ||
list_versions | \ | ||
grep -oP '\d+\.\d+(\.\d+)*(-[^'\''\"\s]*)?$' | \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I get it. Hmm... 1.5.2.1 is a super weird tag name...
Ideally, I'd reject such inputs, but maybe it's fine to accept. I left a suggestion to make the regex simpler but LGTM other than that.
Thanks 👍 |
🚀 [bumpr] Bumped! New version:v1.3.0 Changes:v1.2.2...v1.3.0 |
Close #29.