9b53d767

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Show VCS metadata on about page (#69)

Use Go VCS stamping via runtime/debug.ReadBuildInfo to display the source revision and version modification time on /about. Hide the metadata fields when Go does not provide VCS metadata instead of injecting fallback values.

Copy .git into the Docker builder stage so Docker builds include VCS metadata, and remove the old custom build-time ldflags from dev and Nix builds.

Testing:
- ./dev-scripts/run-go-tests
- dev-scripts/git-hooks/pre-commit
- nix flake check

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/69

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 6s 6s 6s
Eval 5s 32s 32s 37s
Build 10s 55s 3m32s 3m42s
Test - - - -
Deploy - - - -
Suite 0s 1m33s 3m42s 3m42s

Timeline

0s10s20s30s1m10s1m20s2m40s3m40s