kubectl-validate: 0.0.3 -> 0.0.4

This commit is contained in:
Simon Menke 2024-06-21 16:15:53 +02:00
parent 4bebab5e98
commit f8bb2bbe2d
No known key found for this signature in database

View File

@ -4,7 +4,7 @@
, nix-update-script , nix-update-script
}: }:
let let
version = "0.0.3"; version = "0.0.4";
in in
buildGoModule { buildGoModule {
inherit version; inherit version;
@ -14,7 +14,7 @@ buildGoModule {
owner = "kubernetes-sigs"; owner = "kubernetes-sigs";
repo = "kubectl-validate"; repo = "kubectl-validate";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-k2+2QIPjNw6C/Do1WhPN39VZhZX4PZ6ZsKDKGJ9E5QA="; hash = "sha256-0r3ffrZSRtSe5CgvocRhoJz0zqUsx9vtABP2h1o9vCw=";
}; };
vendorHash = null; vendorHash = null;
@ -24,6 +24,9 @@ buildGoModule {
preBuild = '' preBuild = ''
mv cmd/download-builtin-schemas/main.go cmd/download-builtin-schemas/_main.go mv cmd/download-builtin-schemas/main.go cmd/download-builtin-schemas/_main.go
mv pkg/openapiclient/github_builtins_test.go pkg/openapiclient/_github_builtins_test.go mv pkg/openapiclient/github_builtins_test.go pkg/openapiclient/_github_builtins_test.go
# https://github.com/kubernetes-sigs/kubectl-validate/issues/134
mv pkg/openapiclient/hardcoded_builtins_test.go pkg/openapiclient/_hardcoded_builtins_test.go
''; '';
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };