mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
go-mockery: 2.20.2 -> 2.32.0
Upgrade go-mockery to the latest stable version. We must use proxyVendor due to mockery using Go workspaces.
This commit is contained in:
parent
fad65047fa
commit
f7c9fe8eba
@ -2,27 +2,29 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-mockery";
|
||||
version = "2.20.2";
|
||||
version = "2.32.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vektra";
|
||||
repo = "mockery";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MIEVAEjXM3QNz3PnjB/g5Ury+N9NJhxtcXF+SLAvqR4=";
|
||||
sha256 = "sha256-fQzXgCRMIcGQRCnKn/vu3GzNrx4/xrMVmzqjOujyNNE=";
|
||||
};
|
||||
|
||||
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}
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X" "github.com/vektra/mockery/v2/pkg/config.SemVer=v${version}"
|
||||
"-X" "github.com/vektra/mockery/v2/pkg/logging.SemVer=v${version}"
|
||||
];
|
||||
|
||||
CGO_ENABLED = false;
|
||||
|
||||
vendorHash = "sha256-3lx3wHnPQ/slRXnlVAnI1ZqSykDXNivjwg1WUITGj64=";
|
||||
proxyVendor = true;
|
||||
vendorHash = "sha256-c8HsrcS3x16x3x/VQjQ2XWxfMVYHJ6pbQWztqFj0ju4=";
|
||||
|
||||
passthru.tests = {
|
||||
generateMock = runCommand "${pname}-test" {
|
||||
|
Loading…
Reference in New Issue
Block a user