diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2022-02-03 20:51:47 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2022-02-03 20:51:47 -0600 |
commit | f222fba4dca69919d28468467e6e5c4c859cfc13 (patch) | |
tree | e09cba5b7294d4fa0e8178243556ee4dbb8ef3c3 /src/libcmd | |
parent | bd383d1b6f91c4fe7ac21c52771e92027f649fa0 (diff) |
Allow missing flake.nix for --override-input target
At this point, we don’t know if the input is a flake or not. So, we
should allow the user to override the input with a directory without a
flake.nix.
Ideally, we could figure whether the input was originally a flake or
not, but that would require instantiating the whole flake. So just
allow it to be missing here, and rely on checks later on to verify the
input for us.
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/installables.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 38a177f80..5e8b62e1a 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -97,7 +97,7 @@ MixFlakeOptions::MixFlakeOptions() lockFlags.writeLockFile = false; lockFlags.inputOverrides.insert_or_assign( flake::parseInputPath(inputPath), - parseFlakeRef(flakeRef, absPath("."))); + parseFlakeRef(flakeRef, absPath("."), true)); }} }); |