Skip to content

Commit

Permalink
WIP: delay the flake outPath semantics change for now
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Apr 16, 2024
1 parent 446d59b commit 4332b9a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/libexpr/flake/call-flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,18 @@ let
overrides.${key}.sourceInfo
else
# FIXME: remove obsolete node.info.
fetchTree (node.info or {} // removeAttrs node.locked ["dir"]);
let
tree =
fetchTree (node.info or {} // removeAttrs node.locked ["dir"]);
in tree // {
# TODO: return the path value without fetching to the store?
# removing this will improve performance, but may break
# one or two flakes, that rely on
# `builtins.typeOf outPath` for some reason, or perhaps
# something more subtle than that, despite our conservative
# choice of lazy path semantics.
outPath = "${tree.outPath}";
};

subdir = overrides.${key}.dir or node.locked.dir or "";

Expand Down

0 comments on commit 4332b9a

Please sign in to comment.