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:
Jameel Al-Aziz 2023-07-20 00:30:25 -07:00
parent fad65047fa
commit f7c9fe8eba
No known key found for this signature in database
GPG Key ID: D2C1CC4F32861B8D

View File

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