This is an automated email from the ASF dual-hosted git repository.
tn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 1c6d130 improve version generation to avoid dirty flag
1c6d130 is described below
commit 1c6d130de72042ca5db72e0614114d1593c82bc1
Author: Thomas Neidhart <[email protected]>
AuthorDate: Wed Mar 19 16:06:50 2025 +0100
improve version generation to avoid dirty flag
---
Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 97b87ac..4cbdf66 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ BIND ?= 127.0.0.1:8080
PYTHON ?= $(which python3)
SCRIPTS ?= scripts/poetry
+GET_VERSION = $($(SCRIPTS)/run python atr/metadata.py)
+
build: build-alpine
build-alpine:
@@ -26,7 +28,10 @@ docs:
done
generate-version:
- $(SCRIPTS)/run python atr/metadata.py > atr/_version.py
+ @rm -f atr/_version.py
+ @$(SCRIPTS)/run python atr/metadata.py > /tmp/_version.py
+ @mv /tmp/_version.py atr/_version.py
+ @cat atr/_version.py
report:
@echo SCRIPTS = $(SCRIPTS)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]