werf: 2.31.1 -> 2.34.1 (#395580)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-08 01:35:55 +02:00
committed by GitHub
+13 -14
View File
@@ -8,21 +8,19 @@
installShellFiles,
versionCheckHook,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "werf";
version = "2.31.1";
version = "2.34.1";
src = fetchFromGitHub {
owner = "werf";
repo = "werf";
tag = "v${version}";
hash = "sha256-eEdhAY3vN6hsgggakYpGFiVjR2BBGrg1UF18gFXc8g8=";
tag = "v${finalAttrs.version}";
hash = "sha256-hWkU3tyh0kQ9GNl5gQIs4wTRBQV0B3/0oOAhKLo1hOo=";
};
vendorHash = "sha256-g+QZI0mfXSIU+iBnKzMeTGuF5UB1cwOixvRhcrBGrpE=";
proxyVendor = true;
vendorHash = "sha256-x9ehxBfyk5sMg71yJcyjcrBAi5bzEnENAaqLXFoGQck=";
subPackages = [ "cmd/werf" ];
@@ -41,9 +39,9 @@ buildGoModule rec {
[
"-s"
"-w"
"-X github.com/werf/werf/v2/pkg/werf.Version=v${version}"
"-X github.com/werf/werf/v2/pkg/werf.Version=${finalAttrs.src.rev}"
]
++ lib.optionals (env.CGO_ENABLED == 1) [
++ lib.optionals (finalAttrs.env.CGO_ENABLED == 1) [
"-extldflags=-static"
"-linkmode external"
];
@@ -56,7 +54,7 @@ buildGoModule rec {
"dfrunsecurity"
"dfssh"
]
++ lib.optionals (env.CGO_ENABLED == 1) [
++ lib.optionals (finalAttrs.env.CGO_ENABLED == 1) [
"cni"
"exclude_graphdriver_devicemapper"
"netgo"
@@ -72,13 +70,14 @@ buildGoModule rec {
# Test all packages.
unset subPackages
# Remove tests that require external services, usually a Docker daemon.
# Remove tests that fail or require external services.
rm -rf \
integration/suites \
pkg/true_git/*_test.go \
pkg/werf/exec/*_test.go \
test/e2e
''
+ lib.optionalString (env.CGO_ENABLED == 0) ''
+ lib.optionalString (finalAttrs.env.CGO_ENABLED == 0) ''
# A workaround for osusergo.
export USER=nixbld
'';
@@ -104,9 +103,9 @@ buildGoModule rec {
Buildah.
'';
homepage = "https://werf.io";
changelog = "https://github.com/werf/werf/releases/tag/${src.rev}";
changelog = "https://github.com/werf/werf/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.azahi ];
mainProgram = "werf";
};
}
})