feat(run): inherit from MixEnvironment

This commit is contained in:
Bryan Honof 2024-09-12 03:05:41 +02:00
parent 48477d4a3e
commit 2226f9864e
No known key found for this signature in database

View file

@ -75,7 +75,7 @@ void execProgramInStore(ref<Store> store,
} }
struct CmdRun : InstallableValueCommand struct CmdRun : InstallableValueCommand, MixEnvironment
{ {
using InstallableCommand::run; using InstallableCommand::run;
@ -135,6 +135,8 @@ struct CmdRun : InstallableValueCommand
// we are about to exec out of this process without running C++ destructors. // we are about to exec out of this process without running C++ destructors.
state->evalCaches.clear(); state->evalCaches.clear();
setEnviron();
execProgramInStore(store, UseLookupPath::DontUse, app.program, allArgs); execProgramInStore(store, UseLookupPath::DontUse, app.program, allArgs);
} }
}; };