rss email digests over ssh because you're a cool kid herald.dunkirk.sh
go rss rss-reader ssh charm
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: properly inject version and commit hash into build

- Add ldflags in flake.nix to set version and commit hash at build time
- Pass version and commit to fang.Execute() via WithVersion and WithCommit options
- Fixes version output showing 'unknown (built from source)'
- Version now correctly displays as 'herald version 0.1.1 (hash)'

💘 Generated with Crush

Assisted-by: Copilot: Claude Sonnet 4.5 via Crush <crush@charm.land>

+7 -1
+5 -1
flake.nix
··· 29 29 { 30 30 default = pkgs.buildGoModule { 31 31 pname = "herald"; 32 - version = "0.1.0"; 32 + version = "0.1.1"; 33 33 subPackages = [ "." ]; 34 34 src = self; 35 35 vendorHash = "sha256-IE7JMJ4DehwYxrkh5YCgw7yWdybxtCCxWQO7M/u6bno="; 36 + ldflags = [ 37 + "-X main.commitHash=${self.rev or self.dirtyRev or "dev"}" 38 + "-X main.version=0.1.1" 39 + ]; 36 40 }; 37 41 } 38 42 );
+2
main.go
··· 49 49 if err := fang.Execute( 50 50 context.Background(), 51 51 rootCmd, 52 + fang.WithVersion(version), 53 + fang.WithCommit(commitHash), 52 54 fang.WithNotifySignal(os.Interrupt, os.Kill), 53 55 ); err != nil { 54 56 os.Exit(1)