.packit.yaml: implement version fallback until we have a tag

This commit is contained in:
Florian Schüller 2024-12-19 13:42:28 +01:00 committed by Simon de Vlieger
parent 9b737c1949
commit 7e181e30c9

View file

@ -15,7 +15,8 @@ srpm_build_deps:
- golang
actions:
get-current-version: bash -c "git describe --tags --abbrev=0 | sed 's|v||' && echo 1"
# 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||'"
post-upstream-clone: bash -c "go mod vendor || ./tools/rpm_spec_add_provides_bundle.sh"
create-archive: bash -c "make release_artifacts"