Fix follows paths in subordinate lockfiles
This commit is contained in:
@@ -43,7 +43,6 @@ struct FlakeInput
|
||||
std::optional<FlakeRef> ref;
|
||||
bool isFlake = true; // true = process flake to get outputs, false = (fetched) static source path
|
||||
std::optional<InputPath> follows;
|
||||
bool absolute = false; // whether 'follows' is relative to the flake root
|
||||
FlakeInputs overrides;
|
||||
};
|
||||
|
||||
@@ -125,6 +124,15 @@ struct LockFlags
|
||||
std::set<InputPath> inputUpdates;
|
||||
};
|
||||
|
||||
struct LockParent {
|
||||
/* The path to this parent */
|
||||
InputPath path;
|
||||
|
||||
/* Whether we are currently inside a top-level lockfile (inputs absolute)
|
||||
or subordinate lockfile (inputs relative) */
|
||||
bool absolute;
|
||||
};
|
||||
|
||||
LockedFlake lockFlake(
|
||||
EvalState & state,
|
||||
const FlakeRef & flakeRef,
|
||||
|
||||
Reference in New Issue
Block a user