From c686de6505f96982c0600c121277f7b5a30fc371 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 9 May 2025 16:44:48 +0200 Subject: [PATCH] nix flake prefetch: Remove __final This is currently an internal attribute, not intended to be shown to users. Fixes #13150. --- src/nix/flake.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 351b2caaf..80ff111f1 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -1497,6 +1497,7 @@ struct CmdFlakePrefetch : FlakeCommand, MixJSON res["hash"] = hash.to_string(HashFormat::SRI, true); res["original"] = fetchers::attrsToJSON(resolvedRef.toAttrs()); res["locked"] = fetchers::attrsToJSON(lockedRef.toAttrs()); + res["locked"].erase("__final"); // internal for now printJSON(res); } else { notice("Downloaded '%s' to '%s' (hash '%s').",