nix flake check: Use read-only mode if we're not building
This commit is contained in:
@@ -259,6 +259,8 @@ struct CmdFlakeCheck : FlakeCommand, MixJSON
|
||||
|
||||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
settings.readOnlyMode = !build;
|
||||
|
||||
auto state = getEvalState();
|
||||
auto flake = resolveFlake();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user