Skip to content

Conversation

@lsm5
Copy link
Member

@lsm5 lsm5 commented Aug 26, 2025

The COPR rpm builds done by packit fetch version using git describe. But this is a problem for the upgrade path from older copr builds because currently git describe fails on the monorepo.

This commit adds a custom build script that sets rpm version from common/version/version.go .

This will only affect COPR rpms and not official distro rpms. Similar action has been enabled on other projects already.

Ref: https://github.com/containers/netavark/blob/main/.packit-copr-rpm.sh

@packit-as-a-service
Copy link

Packit jobs failed. @containers/packit-build please check.

@lsm5 lsm5 force-pushed the packit-followup branch from 53966ff to 335c8c0 Compare August 26, 2025 18:33
The COPR rpm builds done by packit fetch version using `git describe`.
But this is a problem for the upgrade path from older copr builds
because currently `git describe` fails on the monorepo.

This commit adds a custom build script that sets rpm version from
`common/version/version.go` .

This will only affect COPR rpms and not official distro rpms.
Similar action has been enabled on other projects already.

Ref: https://github.com/containers/netavark/blob/main/.packit-copr-rpm.sh

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
@lsm5 lsm5 force-pushed the packit-followup branch from 335c8c0 to f95cc1b Compare August 26, 2025 18:46
@lsm5
Copy link
Member Author

lsm5 commented Aug 26, 2025

copr rpms from this PR correctly show 0.65.0 as opposed to the latest rpms on podman-next . Once this PR is merged, podman-next will get fixed too.

PTAL @containers/container-libs-maintainers

@lsm5 lsm5 marked this pull request as ready for review August 26, 2025 18:52
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mheon
Copy link
Member

mheon commented Aug 26, 2025

LGTM

@mheon mheon merged commit 9751e74 into containers:main Aug 26, 2025
15 checks passed
@lsm5 lsm5 deleted the packit-followup branch August 27, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants