Merge pull request #299525 from michaeladler/updates/go-mockery

go-mockery: 2.38.0 -> 2.42.1
This commit is contained in:
Mario Rodas 2024-03-28 18:30:02 -05:00 committed by GitHub
commit 8b5339b507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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