From 1ac0b512b7a932a1477dead76dc638738934354c Mon Sep 17 00:00:00 2001 From: David Ragot <35502263+Dav-14@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:02:16 +0200 Subject: [PATCH] chore: install helm-schema plugin via nix The helm-values-schema-json plugin was managed by `helm plugin install` in the Justfile, which silently no-ops when already installed and never refreshes the binary. That left the on-disk binary drifting from the manifest version, eventually breaking `just pc` when the cobra-rewritten v2.x binary rejected the legacy `-input`/`-output` flags. Move the plugin into the dev shell via `wrapHelm` so its version is locked alongside everything else. Update the recipe to the cobra flag syntax (`--values`/`--output`) and bump nixpkgs to 25.11 (which forces go_1_26 since go_1_23 is EOL). Co-Authored-By: Claude Opus 4.7 (1M context) --- Justfile | 7 ++----- flake.lock | 12 ++++++------ flake.nix | 8 +++++--- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Justfile b/Justfile index a1b6654a..f9ba2b39 100644 --- a/Justfile +++ b/Justfile @@ -13,16 +13,13 @@ lint: tidy: lint @cd ./tools/readme && go mod tidy -helm-schema-install: - helm plugin install https://github.com/losisin/helm-values-schema-json.git --version v1.9.2 || true - helm-schema path='': - helm schema -input {{path}}/values.yaml -output {{path}}/values.schema.json + helm schema --values {{path}}/values.yaml --output {{path}}/values.schema.json helm-docs: go run github.com/norwoodj/helm-docs/cmd/helm-docs@v1.14 --chart-search-root=charts --document-dependency-values --skip-version-footer -helm-all package="false" publish='false' packageArgs="": helm-docs helm-schema-install +helm-all package="false" publish='false' packageArgs="": helm-docs #!/bin/bash set -euo pipefail diff --git a/flake.lock b/flake.lock index 78e09e2f..12609e0e 100644 --- a/flake.lock +++ b/flake.lock @@ -23,16 +23,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1742422364, - "narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=", - "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", - "revCount": 770807, + "lastModified": 1777077449, + "narHash": "sha256-AIiMJiqvGrN4HyLEbKAoCSRRYn0rnlW5VbKNIMIYqm4=", + "rev": "a4bf06618f0b5ee50f14ed8f0da77d34ecc19160", + "revCount": 911667, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.770807%2Brev-a84ebe20c6bc2ecbcfb000a50776219f48d134cc/0195b626-8c1d-7fb9-9282-563af3d37ab9/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2511.911667%2Brev-a4bf06618f0b5ee50f14ed8f0da77d34ecc19160/019dcae8-75b0-71d1-abd5-feab9658f0fa/source.tar.gz" }, "original": { "type": "tarball", - "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" + "url": "https://flakehub.com/f/NixOS/nixpkgs/0.2511.%2A.tar.gz" } }, "nur": { diff --git a/flake.nix b/flake.nix index 163a6ee0..ed1b7b2f 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Wallets dev env"; inputs = { - nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; + nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2511.*.tar.gz"; nur = { url = "github:nix-community/NUR"; @@ -12,7 +12,7 @@ outputs = { self, nixpkgs, nur }: let - goVersion = 23; + goVersion = 26; supportedSystems = [ "x86_64-linux" @@ -49,7 +49,9 @@ ginkgo pkgs.nur.repos.goreleaser.goreleaser-pro just - kubernetes-helm + (wrapHelm kubernetes-helm { + plugins = [ kubernetes-helmPlugins.helm-schema ]; + }) kustomize_4 mockgen yq