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

container image reports an incorrect version #822

Open
eskultety opened this issue Feb 5, 2025 · 1 comment
Open

container image reports an incorrect version #822

eskultety opened this issue Feb 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@eskultety
Copy link
Member

If one runs cachi2 --version in context of the distributed container image, the version string is incorrect and it's incorrect on 2 fronts:

  1. There's no trace of the actual tag that the image was built from whatsoever
$ podman run -it quay.io/konflux-ci/cachi2:0.20.0 --version
***cachi2 0.0.post1+g86764ba.d20250204***
  1. For locally built images with podman it's just the post-release string that shouldn't even be there because the image was built from a particular tagged commit, so there is no post-release/post-tag commit other than the one we're building from
$ podman run -it localhost/cachi2:0.18.0 --version
cachi2 0.18.0.post0+g06180db6.d20250205
@eskultety eskultety added the bug Something isn't working label Feb 5, 2025
@eskultety
Copy link
Member Author

To add a bit more context and confusion as well, if one tries to install a given tag simply with pip locally without building a container image, everything works as expected:

$ pip install .
...
Successfully installed cachi2-0.20.0
$ cachi2 --version
cachi2 0.20.0

At this point I don't know what's happening in the background with setuptools-scm that it misbehaves during container builds, but works fine with plain python builds/installs in local dev environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant