mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-26 00:29:06 +02:00
build: drop -buildvcs=false so go embeds vcs.revision into the ui binary
All Wails3 Taskfiles passed -buildvcs=false to go build, which disables the automatic VCS info embedding Go 1.18+ does by default. As a result runtime/debug.ReadBuildInfo() returned an empty vcs.revision in our netbird-ui binary, so the upcoming version.NetbirdCommit() helper from PR #6263 could not display the git sha for dev builds. Removed from build:native in all three platform Taskfiles plus the Windows build:console and the Dockerfile.cross cross-compile script. go version -m bin/netbird-ui now reports vcs.revision and vcs.modified.
This commit is contained in:
@@ -193,7 +193,7 @@ if [ -n "$EXTRA_TAGS" ]; then
|
||||
TAGS="${TAGS},${EXTRA_TAGS}"
|
||||
fi
|
||||
|
||||
go build -tags "$TAGS" -trimpath -buildvcs=false -ldflags="$LDFLAGS" -o bin/${APP}-${GOOS}-${GOARCH}${EXT} .
|
||||
go build -tags "$TAGS" -trimpath -ldflags="$LDFLAGS" -o bin/${APP}-${GOOS}-${GOARCH}${EXT} .
|
||||
echo "Built: bin/${APP}-${GOOS}-${GOARCH}${EXT}"
|
||||
SCRIPT
|
||||
RUN chmod +x /usr/local/bin/build.sh
|
||||
|
||||
Reference in New Issue
Block a user