Added helper scripts that will lock and unlock changes to version.go.

This commit is contained in:
2025-08-02 13:50:39 +02:00
parent 028788f357
commit b0f0467346
2 changed files with 10 additions and 0 deletions

7
set-version.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
# Allow git to track changes to version.go
git update-index --no-assume-unchanged version.go
# Hardcode the version into main.go
sed -i '' "s/^var Version = .*/var Version = \"$VERSION\"/" version.go