Initial commit.

This commit is contained in:
2025-12-10 15:05:08 +01:00
commit 2c1b1ab38c
5 changed files with 30 additions and 0 deletions

13
build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
VERSION=$(git describe --tags --always 2>/dev/null)
if [ ! -z "$VERSION" ]; then
echo "Building version: $VERSION"
LDFLAGS="-ldflags \"-X main.Version=$VERSION\""
else
echo "Building without version information"
LDFLAGS=""
fi
go build $LDFLAGS -o test-version .