Unverified Commit 8b5339b5 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

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

go-mockery: 2.38.0 -> 2.42.1
parents afaad870 2f6c800e
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -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" {