Merge pull request #114911 from Ma27/loki-buildinfo

grafana-loki: add buildinfo
This commit is contained in:
Sandro 2021-03-03 15:37:10 +01:00 committed by GitHub
commit f1c25b73f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ buildGoModule rec {
passthru.tests = { inherit (nixosTests) loki; };
buildFlagsArray = let t = "github.com/grafana/loki/pkg/build"; in ''
-ldflags=-s -w -X ${t}.Version=${version} -X ${t}.BuildUser=nix@nixpkgs -X ${t}.BuildDate=unknown -X ${t}.Branch=unknown -X ${t}.Revision=unknown
'';
doCheck = true;
meta = with lib; {