-
Notifications
You must be signed in to change notification settings - Fork 7
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
Makefile/packit: Set version to "single number" only for releases #58
Conversation
2e1265f
to
cecb8ac
Compare
RPMs and releases should reflect if it's built from a release tag or some other commit. Expected behavior is, that if you build a tag like "v4" the result is `image-builder-cli-4.tar.gz` otherwise it should visualize that this is NOT a release e.g. `image-builder-cli-4-12-g30166b0.tar.gz`
cecb8ac
to
f402972
Compare
Seems to work - I'd really prefer this, if there is no drawback… |
Do we have the version now twice? Looking at e.g. https://dashboard.packit.dev/jobs/copr/2118828 I see:
or am I missing something? |
I think the filename might be constructed from "version" and "release"
(this is the f40_x86_64 version I test-installed) |
I wonder if we can consolidate this information, it seems redundant to me (to have e.g. the hash and the number of commits since the tag in both places) but then I have no idea what the policies for rpms are and will leave this to others to decide, mostly wondering. |
For me the key would be that "upgrading" and "downgrading" would work better? Not sure if "release" is considered here by rpm/dnf. |
…but you might be right - if "release" is respected properly - this PR is rendered an overkill :-/ |
Release is considered and this is (almost) exactly what it is meant for. We're building version 4; with some additional commits on top, see it as if we're applying patches to version 4. |
RPM filenames are always constructed as NVRA - name-version-release.arch. The full NVRA is taken into consideration for upgrades and downgrades. Personally, I use COPR builds from It is common in RPM world to use the |
RPMs and releases should reflect if it's built from a release tag or some other commit.
Expected behavior is, that if you build a tag like "v4" the result is
image-builder-cli-4.tar.gz
otherwise it should visualize that this is NOT a release e.g.image-builder-cli-4.12.g30166b0.tar.gz