mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Respect build-use-substitutes
This commit is contained in:
parent
812c0dfbe2
commit
064816ab98
2 changed files with 3 additions and 1 deletions
|
@ -3107,7 +3107,7 @@ void SubstitutionGoal::init()
|
|||
if (settings.readOnlyMode)
|
||||
throw Error(format("cannot substitute path ‘%1%’ - no write access to the Nix store") % storePath);
|
||||
|
||||
subs = getDefaultSubstituters();
|
||||
subs = settings.useSubstitutes ? getDefaultSubstituters() : std::list<ref<Store>>();
|
||||
|
||||
tryNext();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue