fix missing commit hashes in binary
Alan Pearce alan@alanpearce.eu
Sat, 27 Apr 2024 21:34:47 +0200
2 files changed, 7 insertions(+), 2 deletions(-)
M internal/server/server.go → internal/server/server.go
@@ -25,6 +25,11 @@ ) var config *cfg.Config +var ( + CommitSHA string + ShortSHA string +) + type Config struct { Production bool `conf:"default:false"` InDevServer bool `conf:"default:false"`
M nix/default.nix → nix/default.nix
@@ -80,9 +80,9 @@ ldflags = [ "-s" "-w" "-X" - "main.CommitSHA=${fullSHA}" + "website/internal/server.CommitSHA=${fullSHA}" "-X" - "main.ShortSHA=${shortSHA}" + "website/internal/server.ShortSHA=${shortSHA}" ]; }; docker-stream = mkDockerStream { inherit server website; };