gnmic: fix version reporting

Fix #359543
This commit is contained in:
Vincent Bernat 2024-11-27 20:29:40 +01:00
parent 4329ff5f84
commit 998c477262

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 = [ "." ];