File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -504,8 +504,8 @@ bool NixRepl::processLine(string line)
504504 state->store ->buildPaths ({DerivedPath::Built{drvPath}});
505505 auto drv = state->store ->readDerivation (drvPath);
506506 logger->cout (" \n This derivation produced the following outputs:" );
507- for (auto & i : drv. outputsAndOptPaths (* state->store ))
508- logger->cout (" %s -> %s" , i. first , state->store ->printStorePath (*i. second . second ));
507+ for (auto & [outputName, outputPath] : state->store -> queryDerivationOutputMap (drvPath ))
508+ logger->cout (" %s -> %s" , outputName , state->store ->printStorePath (outputPath ));
509509 } else if (command == " :i" ) {
510510 runNix (" nix-env" , {" -i" , drvPathRaw});
511511 } else {
Original file line number Diff line number Diff line change 1+ source common.sh
2+
3+ export NIX_TESTS_CA_BY_DEFAULT=1
4+
5+ cd .. && source repl.sh
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ nix_tests = \
4848 flakes.sh \
4949 build.sh \
5050 compute-levels.sh \
51- repl.sh \
51+ repl.sh ca/repl.sh \
5252 ca/build.sh \
5353 ca/build-with-garbage-path.sh \
5454 ca/duplicate-realisation-in-closure.sh \
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ simple = import ./simple.nix
77
88testRepl () {
99 local nixArgs=(" $@ " )
10- local outPath=$( nix repl " ${nixArgs[@]} " <<< " $replCmds" | &
10+ local replOutput=" $( nix repl " ${nixArgs[@]} " <<< " $replCmds" ) "
11+ echo " $replOutput "
12+ local outPath=$( echo " $replOutput " | &
1113 grep -o -E " $NIX_STORE_DIR /\w*-simple" )
1214 nix path-info " ${nixArgs[@]} " " $outPath "
1315}
You can’t perform that action at this time.
0 commit comments