From 956c257c082ef5396d95ec12ad83dd875a32f012 Mon Sep 17 00:00:00 2001 From: noah-emp <182041600+noah-emp@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:46:42 -0500 Subject: [PATCH] build: ez 1.18.0; lint through mkLint's own `bolt check` ez 1.16.0's mkLint runs `bolt check` when handed a bolt, so the boltCheck wrapper made it `bolt check check` ("check:1:1: Cannot read this file") once the flake's ez moved past 1.16. Hand mkLint the bolt built from this tree instead. Co-Authored-By: Claude Opus 5.5 --- flake.lock | 6 +++--- flake.nix | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index bd0339c9..e9ee3e62 100644 --- a/flake.lock +++ b/flake.lock @@ -31,11 +31,11 @@ ] }, "locked": { - "lastModified": 1794163393, - "narHash": "sha256-RwsUSTKjNvU7qGYKdaFItKGjtI/dy3cEjdDhZuN49tE=", + "lastModified": 1794865056, + "narHash": "sha256-kMGpmxQzw3ZdNE5xl7+aDD3lms+kg05BDOQKduls/Wo=", "owner": "Emerging-Patterns", "repo": "ez", - "rev": "35ace28d9578d8809a55d16941b0633e8fa774f5", + "rev": "86e968fa2adbe1b4fc9d5b2f76636c4b3d52927e", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 9ddd003f..1e65dc35 100644 --- a/flake.nix +++ b/flake.nix @@ -59,12 +59,8 @@ # only on a first line of ALL PROOFS CHECK proofs = ez.mkProofs { ez = ezBin; src = self; }; # bolt check, built from this tree, over this tree: exit 1 on any - # error. mkLint runs `bolt` with no command, which prints the usage - # and exits 2, so it is handed a `bolt` that is `bolt check` - boltCheck = pkgs.writeShellScriptBin "bolt" '' - exec ${bolt}/bin/bolt check "$@" - ''; - lint = ez.mkLint { bolt = boltCheck; src = self; }; + # error (mkLint runs `bolt check` when handed a bolt, since ez 1.16) + lint = ez.mkLint { inherit bolt; src = self; }; # bolt format --check, built from this tree, over this tree: exit 1 # when a file would change, so the tree stays formatted fmt = pkgs.runCommand "bolt-format" { } ''