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

This commit is contained in:
slawek committed 2025-08-02 13:50:39 +02:00
1 parent 028788f357
commit b0f0467346
2 files changed
+10

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
git update-index --assume-unchanged version.go
Executable
+7
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