Merge pull request #198849 from mathieupost/patch-3

go-mockery: 2.9.2 -> 2.14.1
This commit is contained in:
Mario Rodas 2022-11-08 03:19:34 -05:00 committed by GitHub
commit ca78426991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

@ -2,16 +2,27 @@
buildGoModule rec {
pname = "go-mockery";
version = "2.9.2";
version = "2.14.1";
src = fetchFromGitHub {
owner = "vektra";
repo = "mockery";
rev = "v${version}";
sha256 = "sha256-+r9he3rlANGusv0vIZPSninaouMftRsfJWnm3VngcXU=";
sha256 = "sha256-FgDjuiBFzOaT8GlJYI7xNfxC9uhyZtBAIBFXZgW0BDU=";
};
vendorSha256 = "sha256-//V3ia3YP1hPgC1ipScURZ5uXU4A2keoG6dGuwaPBcA=";
preCheck = ''
substituteInPlace ./pkg/generator_test.go --replace 0.0.0-dev ${version}
'';
ldflags = [
"-s" "-w"
"-X" "github.com/vektra/mockery/v2/pkg/config.SemVer=v${version}"
];
CGO_ENABLED = false;
vendorSha256 = "sha256-+40n7OoP8TLyjj4ehBHOD6/SqzJMCHsISE0FrXUL3Q8=";
meta = with lib; {
homepage = "https://github.com/vektra/mockery";

@ -25476,8 +25476,7 @@ with pkgs;
go-migrate = callPackage ../development/tools/go-migrate { };
go-mockery = callPackage ../development/tools/go-mockery {
# pinned due to build failure or vendoring problems. When unpinning double check with: nix-build -A $name.go-modules --rebuild
buildGoModule = buildGo117Module;
buildGoModule = buildGo118Module; # tests fail with 1.19
};
gomacro = callPackage ../development/tools/gomacro { };