repl: allow --file to always utilize autoargs

This commit is contained in:
Tom Bereknyei 2022-05-20 01:35:06 -04:00
parent 7d7e00272a
commit db613a85fb

View file

@ -938,7 +938,7 @@ struct CmdRepl : InstallablesCommand
NixRepl::AnnotatedValues values; NixRepl::AnnotatedValues values;
for (auto & installable: installables){ for (auto & installable: installables){
auto what = installable->what(); auto what = installable->what();
if (!settings.isExperimentalFeatureEnabled(Xp::Flakes) && file){ if (file){
auto [val, pos] = installable->toValue(*state); auto [val, pos] = installable->toValue(*state);
auto what = installable->what(); auto what = installable->what();
state->forceValue(*val, pos); state->forceValue(*val, pos);