- Update Makefile install target to extract and pass git commit/branch via ldflags - Add -X main.Commit and -X main.Branch to all build configurations in .goreleaser.yml - Create scripts/install.sh helper for explicit version control during installation - Add comprehensive tests for commit/branch resolution and output formatting Fixes github #503: 'bd version' now reports as-built commit hash and branch information regardless of installation method (make install, go install, or released binaries from goreleaser).
2.1 KiB
2.1 KiB