go-mockery: 2.38.0 -> 2.42.1

This commit is contained in:
Michael Adler 2024-03-27 16:58:54 +01:00
parent cb11f85897
commit 2f6c800e68
1 changed files with 7 additions and 5 deletions

View File

@ -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" {