File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3114,7 +3114,7 @@ std::optional<SourcePath> EvalState::resolveLookupPathPath(const LookupPath::Pat
31143114 }
31153115 }
31163116
3117- if (path.pathExists ())
3117+ if (path.resolveSymlinks (). pathExists ())
31183118 return finish (std::move (path));
31193119 else {
31203120 logWarning ({
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ nix-instantiate --restrict-eval ./simple.nix -I src1=./simple.nix -I src2=./conf
2323(! nix-instantiate --restrict-eval --eval -E ' builtins.readFile ./simple.nix' )
2424nix-instantiate --restrict-eval --eval -E ' builtins.readFile ./simple.nix' -I src=../..
2525
26- expectStderr 1 nix-instantiate --restrict-eval --eval -E ' let __nixPath = [ { prefix = "foo"; path = ./.; } ]; in builtins.readFile <foo/simple.nix>' | grepQuiet " was not found in the Nix search path "
26+ expectStderr 1 nix-instantiate --restrict-eval --eval -E ' let __nixPath = [ { prefix = "foo"; path = ./.; } ]; in builtins.readFile <foo/simple.nix>' | grepQuiet " forbidden in restricted mode "
2727nix-instantiate --restrict-eval --eval -E ' let __nixPath = [ { prefix = "foo"; path = ./.; } ]; in builtins.readFile <foo/simple.nix>' -I src=.
2828
2929p=$( nix eval --raw --expr " builtins.fetchurl file://${_NIX_TEST_SOURCE_DIR} /restricted.sh" --impure --restrict-eval --allowed-uris " file://${_NIX_TEST_SOURCE_DIR} " )
You can’t perform that action at this time.
0 commit comments