go-mockery_2: init at 2.53.3

Added go-mockery_2 to give users options while v2 is still supported upstream.

Changed files
+56 -5
doc
release-notes
pkgs
by-name
gi
git-team
go
go-mockery_2
op
opencloud
+1 -1
doc/release-notes/rl-2511.section.md
···
of the [4.3 release](https://github.com/netbox-community/netbox/releases/tag/v4.2.0),
make the required changes to your database, if needed, then upgrade by setting `services.netbox.package = pkgs.netbox_4_3;` in your configuration.
-
- `go-mockery` has been updated to v3. For migration instructions see the [upstream documentation](https://vektra.github.io/mockery/latest/v3/).
+
- `go-mockery` has been updated to v3. For migration instructions see the [upstream documentation](https://vektra.github.io/mockery/latest/v3/). If v2 is still required `go-mockery_v2` has been added but will be removed on or before 2029-12-31 in-line with it's [upstream support lifecycle](https://vektra.github.io/mockery/
## Other Notable Changes {#sec-nixpkgs-release-25.11-notable-changes}
+2 -2
pkgs/by-name/gi/git-team/package.nix
···
lib,
buildGoModule,
fetchFromGitHub,
-
go-mockery,
+
go-mockery_2,
installShellFiles,
}:
···
vendorHash = "sha256-NTOUL1oE2IhgLyYYHwRCMW5yCxIRxUwqkfuhSSBXf6A=";
nativeBuildInputs = [
-
go-mockery
+
go-mockery_2
installShellFiles
];
+51
pkgs/by-name/go/go-mockery_2/package.nix
···
+
{
+
lib,
+
buildGoModule,
+
fetchFromGitHub,
+
versionCheckHook,
+
go-task,
+
gotestsum,
+
getent,
+
}:
+
+
buildGoModule (finalAttrs: {
+
pname = "go-mockery_2";
+
# supported upstream until 2029-12-31
+
# https://vektra.github.io/mockery/latest/v3/#v2-support-lifecycle
+
version = "2.53.3";
+
+
src = fetchFromGitHub {
+
owner = "vektra";
+
repo = "mockery";
+
tag = "v${finalAttrs.version}";
+
hash = "sha256-X0cHpv4o6pzgjg7+ULCuFkspeff95WFtJbVHqy4LxAg=";
+
};
+
+
proxyVendor = true;
+
vendorHash = "sha256-AQY4x2bLqMwHIjoKHzEm1hebR29gRs3LJN8i00Uup5o=";
+
+
ldflags = [
+
"-s"
+
"-w"
+
"-X github.com/vektra/mockery/v${lib.versions.major finalAttrs.version}/pkg/logging.SemVer=v${finalAttrs.version}"
+
];
+
+
env.CGO_ENABLED = false;
+
+
subPackages = [ "." ];
+
+
nativeCheckInputs = [
+
versionCheckHook
+
];
+
+
meta = {
+
homepage = "https://github.com/vektra/mockery";
+
description = "Mock code autogenerator for Golang - v2";
+
maintainers = with lib.maintainers; [
+
fbrs
+
jk
+
];
+
mainProgram = "mockery";
+
license = lib.licenses.bsd3;
+
};
+
})
+2 -2
pkgs/by-name/op/opencloud/package.nix
···
ncurses,
gettext,
pigeon,
-
go-mockery,
+
go-mockery_2,
protoc-go-inject-tag,
libxcrypt,
vips,
···
ncurses
gettext
pigeon
-
go-mockery
+
go-mockery_2
protoc-go-inject-tag
pkg-config
];