about summary refs log tree commit diff
path: root/pkgs/by-name/de
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt2024-07-30 17:14:20 +0200
committerGitHub2024-07-30 17:14:20 +0200
commit489420ebfa991d5203e5128624b76ab8c967b9f9 (patch)
treea9bfb8940ab5370904764f6de487c5d752592010 /pkgs/by-name/de
parent7bbce274a1a9a1da23c42996eb73247c5e4f39f7 (diff)
parent6397b78082faca213ecf4f46d67405fd93f07c53 (diff)
Merge pull request #329589 from BirdeeHub/updateDepTree
dep-tree: 0.20.3 -> 0.23.0
Diffstat (limited to 'pkgs/by-name/de')
-rw-r--r--pkgs/by-name/de/dep-tree/package.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/by-name/de/dep-tree/package.nix b/pkgs/by-name/de/dep-tree/package.nix
index 27745d340e21..224eddd3d156 100644
--- a/pkgs/by-name/de/dep-tree/package.nix
+++ b/pkgs/by-name/de/dep-tree/package.nix
@@ -32,7 +32,7 @@ let
     };
   };
   pname = "dep-tree";
-  version = "0.20.3";
+  version = "0.23.0";
 in
 buildGoModule {
   inherit pname version;
@@ -41,16 +41,31 @@ buildGoModule {
     owner = "gabotechs";
     repo = pname;
     rev = "v${version}";
-    hash = "sha256-w0t6SF0Kqr+XAKPNJpDJGDTm2Tc6J9OzbXtRUNkqp2k=";
+    hash = "sha256-Vd6g9UE3XEFGjCK8tFfOphYcNx+zeBS9rBVz0MDLe1I=";
   };
 
-  vendorHash = "sha256-ZDADo1takCemPGYySLwPAODUF+mEJXsaxZn4WWmaUR8=";
+  vendorHash = "sha256-KoVOjZq+RrJ2gzLnANHPPtbEY1ztC0rIXWD9AXAxqMg=";
 
   preCheck = ''
     substituteInPlace internal/tui/tui_test.go \
       --replace-fail /tmp/dep-tree-tests ${linkFarm "dep-tree_testDeps-farm" testDeps}
   '';
 
+  checkPhase = ''
+    runHook preCheck
+    # We do not set trimpath for tests, in case they reference test assets
+    export GOFLAGS=''${GOFLAGS//-trimpath/}
+
+    # checkFlags is not able to skip tests via pattern.
+    # possibly requires fixing in buildGoModule.
+    # For now, this is the new checkPhase
+    go test ./... -skip='TestRoot.*|TestFilesFromArgs.*'
+    # these tests were not feasibly fixable.
+    # a LARGE portion of the original source would need to be edited via patch for this to work.
+
+    runHook postCheck
+  '';
+
   meta = {
     description = "Tool for visualizing interconnectedness of codebases in multiple languages";
     longDescription = ''