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

Inconsistent semver return results #508

Open
michalschott opened this issue Dec 23, 2022 · 1 comment
Open

Inconsistent semver return results #508

michalschott opened this issue Dec 23, 2022 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@michalschott
Copy link

michalschott commented Dec 23, 2022

Describe the bug

Assuming two tags are being pointed to the same image SHA (see attached screenshot)

Zrzut ekranu 2022-12-23 o 09 50 48

/usr/local/bin $ ./argocd-image-updater test quay.io/fairwinds/polaris --semver-constraint 7.2.x | grep "latest image"
time="2022-12-23T08:48:22Z" level=info msg="latest image according to constraint is quay.io/fairwinds/polaris:7.2" application=test image_alias= image_name=quay.io/fairwinds/polaris registry_url=quay.io
/usr/local/bin $ ./argocd-image-updater test quay.io/fairwinds/polaris --semver-constraint 7.2.x | grep "latest image"
time="2022-12-23T08:48:27Z" level=info msg="latest image according to constraint is quay.io/fairwinds/polaris:7.2.0" application=test image_alias= image_name=quay.io/fairwinds/polaris registry_url=quay.io
/usr/local/bin $

With constraint set to 7.2.x I would expect always having 7.2.0 as a return tag.

Version

/usr/local/bin $ ./argocd-image-updater version
argocd-image-updater: v0.12.1+16cff2e
  BuildDate: 2022-12-06T23:42:50Z
  GitCommit: 16cff2e66bcce86ba3ba034788ab5cbf18d8ed88
  GoVersion: go1.17.8
  GoCompiler: gc
  Platform: linux/amd64
@michalschott michalschott added the bug Something isn't working label Dec 23, 2022
@jannfis
Copy link
Contributor

jannfis commented Dec 23, 2022

This is actually a duplicate of #375 I think.

@jannfis jannfis added the duplicate This issue or pull request already exists label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants