mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
The Docker build excluded .git via .dockerignore, so Go's debug.ReadBuildInfo() found no vcs.revision / vcs.time settings and the binaries reported version=dev, commit=unknown, date=unknown in the web UI. Two fixes: 1. Dockerfile — declare ARG VERSION/COMMIT/DATE (default to dev/unknown/unknown so local docker build still works) and pass them to both go build commands via -X main.version/commit/date ldflags. Also add the -trimpath and -s -w flags that the Makefile's BUILDFLAGS already uses but the Dockerfile was missing. 2. release.yml — add a 'Set build date' step, then pass build-args with VERSION, COMMIT (full SHA), and DATE to both docker/build-push-action steps. The .git exclusion in .dockerignore stays correct; version info is now supplied explicitly instead of being read from VCS at build time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>