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

Fix: Semver filtering should preserv "v" prefix if specified #802

Merged
merged 5 commits into from
Aug 16, 2022

Conversation

olblak
Copy link
Member

@olblak olblak commented Aug 12, 2022

Fix #803

When using the versionFilter of kind "semver", we drop the prefix "v" if one exist in the source such as the latest version of the following list ["v1.0.0", "v2.0.0"] would return "2.0.0" instead of "v2.0.0"

Test

To test this pull request, you can run the following commands:

go build -o bin/updatecli
./bin/updatecli diff --confeig updatecli/updatecli.d/venom.yaml 

Source output should show

######################
# BUMP VENOM VERSION #
######################


SOURCES
=======

latestVersion
-------------
Searching for version matching pattern "*"
✔ Github Release version "v1.0.1" found matching pattern "*"

Additional Information

Tradeoff

This is a long running issue, so we'll quite a few updatecli manifest to fix manually :(

Potential improvement

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added the bug Something isn't working label Aug 12, 2022
@olblak olblak added this to the 0.30.0 milestone Aug 12, 2022
@olblak olblak enabled auto-merge (squash) August 12, 2022 16:05
@olblak olblak removed this from the 0.30.0 milestone Aug 16, 2022
@olblak olblak disabled auto-merge August 16, 2022 18:21
@olblak olblak merged commit 95c8780 into updatecli:main Aug 16, 2022
@olblak olblak changed the title Semver filtering should preserv "v" prefix if specified Fix: Semver filtering should preserv "v" prefix if specified Aug 16, 2022
dduportal added a commit to dduportal/updatecli that referenced this pull request Aug 22, 2022
…ed filtered version

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
dduportal added a commit to dduportal/updatecli that referenced this pull request Aug 22, 2022
…ed filtered version

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
dduportal added a commit to dduportal/updatecli that referenced this pull request Aug 23, 2022
…ed filtered version

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
olblak added a commit that referenced this pull request Aug 24, 2022
…ed version (#816)

* feat: add a new 'experimental' flag

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>

* feat: revert #802 and use experimental to control the returned filtered version

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Co-authored-by: Olivier Vernin <olivier@vernin.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Semantic Version filter drop "v" prefix
1 participant