gnmic: fix version reporting (#359655)

This commit is contained in:
Jenny 2024-11-29 01:03:46 +01:00 committed by GitHub
commit 95dbdbbd9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,9 @@ buildGoModule rec {
ldflags = [
"-s" "-w"
"-X" "github.com/openconfig/gnmic/app.version=${version}"
"-X" "github.com/openconfig/gnmic/app.commit=${src.rev}"
"-X" "github.com/openconfig/gnmic/app.date=1970-01-01T00:00:00Z"
"-X" "github.com/openconfig/gnmic/pkg/app.version=${version}"
"-X" "github.com/openconfig/gnmic/pkg/app.commit=${src.rev}"
"-X" "github.com/openconfig/gnmic/pkg/app.date=1970-01-01T00:00:00Z"
];
subPackages = [ "." ];