about summary refs log tree commit diff
path: root/pkgs/tools/security/kubescape
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2022-05-26 08:53:03 +0100
committer06kellyjac <dev@j-k.io>2022-05-26 08:53:03 +0100
commite3750679d814a7d73cbf0849124878d3b3dac498 (patch)
tree885fb41977ddd69ff3c2756f7062bb4c1fb3cb90 /pkgs/tools/security/kubescape
parent4307907d725fce04207f7f092d43c7481e3f7ec0 (diff)
kubescape: fix darwin
Diffstat (limited to 'pkgs/tools/security/kubescape')
-rw-r--r--pkgs/tools/security/kubescape/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/security/kubescape/default.nix b/pkgs/tools/security/kubescape/default.nix
index 9b45000199829..b98ca7ed817f0 100644
--- a/pkgs/tools/security/kubescape/default.nix
+++ b/pkgs/tools/security/kubescape/default.nix
@@ -45,9 +45,9 @@ buildGoModule rec {
       --replace "TestScanRepository" "SkipScanRepository" \
       --replace "TestGit" "SkipGit"
 
-    # without networking the branch context can't be fetched and is empty
+    # remove test that requires networking
     substituteInPlace core/cautils/scaninfo_test.go \
-      --replace 'assert.Equal(t, "master", ctx.RepoContextMetadata.Branch)' 'assert.Equal(t, "", ctx.RepoContextMetadata.Branch)'
+      --replace "TestSetContextMetadata" "SkipSetContextMetadata"
   '';
 
   postInstall = ''