about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Adler <therisen06@gmail.com>2024-03-27 16:58:54 +0100
committerMichael Adler <therisen06@gmail.com>2024-03-27 16:58:54 +0100
commit2f6c800e68d0b1034ad1f531aef146b50a16f5af (patch)
treeb3459ca58516a5d054078199cb6d45f5fe592b1e
parentcb11f8589769078fa154fb57ed8edd185281f1db (diff)
downloadnixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar.gz
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar.bz2
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar.lz
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar.xz
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.tar.zst
nixlib-2f6c800e68d0b1034ad1f531aef146b50a16f5af.zip
go-mockery: 2.38.0 -> 2.42.1
-rw-r--r--pkgs/development/tools/go-mockery/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/tools/go-mockery/default.nix b/pkgs/development/tools/go-mockery/default.nix
index 148e814b5568..7176bf7e3bd3 100644
--- a/pkgs/development/tools/go-mockery/default.nix
+++ b/pkgs/development/tools/go-mockery/default.nix
@@ -2,18 +2,18 @@
 
 buildGoModule rec {
   pname = "go-mockery";
-  version = "2.38.0";
+  version = "2.42.1";
 
   src = fetchFromGitHub {
     owner = "vektra";
     repo = "mockery";
     rev = "v${version}";
-    sha256 = "sha256-fWS4oF/CWlOX6XgeLxsmEfPDDgp1WBSDC4fx2Aid9p0=";
+    sha256 = "sha256-+D91qWXv+OAZKKXllCv6cpGppzmIlwUTweN2NR/nTqU=";
   };
 
   preCheck = ''
-    substituteInPlace ./pkg/generator_test.go --replace 0.0.0-dev ${version}
-    substituteInPlace ./pkg/logging/logging_test.go --replace v0.0 v${lib.versions.majorMinor version}
+    substituteInPlace ./pkg/generator_test.go --replace-fail 0.0.0-dev ${version}
+    substituteInPlace ./pkg/logging/logging_test.go --replace-fail v0.0 v${lib.versions.majorMinor version}
   '';
 
   ldflags = [
@@ -24,7 +24,9 @@ buildGoModule rec {
   CGO_ENABLED = false;
 
   proxyVendor = true;
-  vendorHash = "sha256-iAZjWRW2TWKqcs94lepkcIXUPyPl9qlGhxlX84rN3ok=";
+  vendorHash = "sha256-FCl17nywcMoXEA3l0rOzY66Pj51rEEGdK6Zo6Y3/n34=";
+
+  subPackages = [ "." ];
 
   passthru.tests = {
     generateMock = runCommand "${pname}-test" {