about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/werf/default.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-09-02 20:01:23 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-02 20:01:23 +0300
commitce71b9689620f3d129ed6e56895993e024abc845 (patch)
tree5a733633b846aa1a41a7959f357ea68c7777da55 /pkgs/applications/networking/cluster/werf/default.nix
parent89d52414c6bc07f1aecd5ae5651febb7aa1238bb (diff)
downloadnixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar.gz
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar.bz2
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar.lz
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar.xz
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.tar.zst
nixlib-ce71b9689620f3d129ed6e56895993e024abc845.zip
werf: 1.2.167 -> 1.2.168
Diffstat (limited to 'pkgs/applications/networking/cluster/werf/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/werf/default.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/applications/networking/cluster/werf/default.nix b/pkgs/applications/networking/cluster/werf/default.nix
index 7d1c1912ee23..d7f9dc7bf89d 100644
--- a/pkgs/applications/networking/cluster/werf/default.nix
+++ b/pkgs/applications/networking/cluster/werf/default.nix
@@ -11,16 +11,16 @@
 
 buildGoModule rec {
   pname = "werf";
-  version = "1.2.167";
+  version = "1.2.168";
 
   src = fetchFromGitHub {
     owner = "werf";
     repo = "werf";
     rev = "v${version}";
-    sha256 = "sha256-ddrNrRRol4x/14AUdmavkpbqXvI4XSWhWXu7MXrJ9D4=";
+    hash = "sha256-/Shmnnpme1ffN7GMTryb4ddPlcAsruyWhFdjr1PJ3HM=";
   };
 
-  vendorSha256 = "sha256-E5yDk48O7zze8QTeLQ999QmB8XLkpKNZ8JQ2wVRMGCU=";
+  vendorHash = "sha256-E5yDk48O7zze8QTeLQ999QmB8XLkpKNZ8JQ2wVRMGCU=";
 
   proxyVendor = true;
 
@@ -29,6 +29,8 @@ buildGoModule rec {
   nativeBuildInputs = [ installShellFiles ];
   buildInputs = lib.optionals stdenv.isLinux [ btrfs-progs glibc.static ];
 
+  CGO_ENABLED = if stdenv.isLinux then 1 else 0;
+
   ldflags = [
     "-s"
     "-w"
@@ -50,8 +52,16 @@ buildGoModule rec {
     "static_build"
   ];
 
-  # There are no tests for cmd/werf.
-  doCheck = false;
+  preCheck = ''
+    # Test all targets.
+    unset subPackages
+
+    # Remove tests that require external services.
+    rm -rf \
+      integration/suites \
+      pkg/true_git/*test.go \
+      test/e2e
+  '';
 
   postInstall = ''
     installShellCompletion --cmd werf \