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 authored and tomberek committed Aug 23, 2024
1 parent 250f3c8 commit a4ef062
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/libexpr/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 a4ef062

Please sign in to comment.