Forwarder versioning

Co-authored-by: Gelu Vrabie <gelu@exolabs.net>
This commit is contained in:
Gelu Vrabie
2025-08-18 15:08:50 +01:00
committed by GitHub
parent ea3eeea826
commit 345fafd80d
5 changed files with 103 additions and 41 deletions

View File

@@ -45,7 +45,7 @@ build: regenerate-protobufs
# Build the Go forwarder binary
build-forwarder:
cd networking/forwarder && go build -buildvcs=false -o ../../build/forwarder .
HASH=$(uv run scripts/hashdir.py) && cd networking/forwarder && go build -buildvcs=false -o ../../build/forwarder -ldflags "-X 'main.SourceHash=${HASH}'" .
# Run forwarder tests
test-forwarder: