mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 21:50:58 +01:00
Fix findFile(), coerceToPath()
This commit is contained in:
parent
e7f8aa8bdd
commit
b4c6adfd35
13 changed files with 92 additions and 80 deletions
|
|
@ -1475,7 +1475,9 @@ static int main_nix_env(int argc, char * * argv)
|
|||
globals.state->repair = repair;
|
||||
|
||||
if (file != "")
|
||||
globals.instSource.nixExprPath = lookupFileArg(*globals.state, file);
|
||||
// FIXME: check that the accessor returned by
|
||||
// lookupFileArg() is the root FS.
|
||||
globals.instSource.nixExprPath = lookupFileArg(*globals.state, file).path;
|
||||
|
||||
globals.instSource.autoArgs = myArgs.getAutoArgs(*globals.state);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue