Makefile/packit: avoid duplicate implementation of "version"
This commit is contained in:
parent
4f1816c1b7
commit
00e18fe1cd
2 changed files with 4 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ srpm_build_deps:
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
# v1 just the default prior to having tags
|
# 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"
|
post-upstream-clone: bash -c "go mod vendor && ./tools/rpm_spec_add_provides_bundle.sh"
|
||||||
create-archive: bash -c "make release_artifacts"
|
create-archive: bash -c "make release_artifacts"
|
||||||
|
|
||||||
|
|
|
||||||
3
Makefile
3
Makefile
|
|
@ -189,3 +189,6 @@ release_artifacts: $(RPM_TARBALL_VERSIONED)
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
pre-commit run --all
|
pre-commit run --all
|
||||||
|
|
||||||
|
show-version: ## Show the generated version to be reused in tools like `.packit.yaml`
|
||||||
|
@echo "$(VERSION)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue