Makefile/packit: avoid duplicate implementation of "version"

This commit is contained in:
Florian Schüller 2025-01-10 13:21:00 +01:00 committed by Simon de Vlieger
parent 4f1816c1b7
commit 00e18fe1cd
2 changed files with 4 additions and 1 deletions

View file

@ -16,7 +16,7 @@ srpm_build_deps:
actions:
# v1 just the default prior to having tags
get-current-version: bash -c "( git describe --tags --abbrev=0 2>/dev/null || echo v1 ) | sed 's|v||'"
get-current-version: bash -c "make show-version"
post-upstream-clone: bash -c "go mod vendor && ./tools/rpm_spec_add_provides_bundle.sh"
create-archive: bash -c "make release_artifacts"

View file

@ -189,3 +189,6 @@ release_artifacts: $(RPM_TARBALL_VERSIONED)
lint:
pre-commit run --all
show-version: ## Show the generated version to be reused in tools like `.packit.yaml`
@echo "$(VERSION)"