[master] d22ca17c3 vmodtool: Complain if the VCS version can not be determined
Nils Goroll
nils.goroll at uplex.de
Tue Jun 17 12:53:04 UTC 2025
commit d22ca17c3987b8cee30013ea7cf07fe66a4e0735
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Jun 17 14:51:39 2025 +0200
vmodtool: Complain if the VCS version can not be determined
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index cd0964ba4..682138e4b 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -1248,6 +1248,11 @@ class vcc():
fh.write(gitver)
fh.close()
+ if gitver == "NOGIT":
+ print("WARNING: Neither git nor vmod_vcs_version.txt found.\n\t" +
+ " Please build from a git repo or from a dist archive.",
+ file=sys.stderr)
+
return gitver
def vmod_data(self, fo):
More information about the varnish-commit
mailing list