werf: fix version string

This commit is contained in:
azahi
2025-04-25 14:27:03 +03:00
parent 3bed93fa10
commit 4754bc1f22
+2 -2
View File
@@ -39,7 +39,7 @@ buildGoModule (finalAttrs: {
[
"-s"
"-w"
"-X github.com/werf/werf/v2/pkg/werf.Version=${finalAttrs.src.rev}"
"-X github.com/werf/werf/v2/pkg/werf.Version=v${finalAttrs.version}"
]
++ lib.optionals (finalAttrs.env.CGO_ENABLED == 1) [
"-extldflags=-static"
@@ -103,7 +103,7 @@ buildGoModule (finalAttrs: {
Buildah.
'';
homepage = "https://werf.io";
changelog = "https://github.com/werf/werf/releases/tag/${finalAttrs.src.rev}";
changelog = "https://github.com/werf/werf/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.azahi ];
mainProgram = "werf";