diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-24 18:09:00 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-24 18:09:00 +0100 |
commit | 8518cebfceb36f3744c276cc8dbf432b1275f53f (patch) | |
tree | 35369f7e062925259668b991ee58b4b8ac286d01 /src/nix | |
parent | 3317866060bfb88e0113b5d6275d1ad0e3f74d8d (diff) |
libfetchers: Rename immutable -> locked
This is more consistent with flake terminology.
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/profile.cc | 2 | ||||
-rw-r--r-- | src/nix/repl.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc index 508cbd336..0e8dc4380 100644 --- a/src/nix/profile.cc +++ b/src/nix/profile.cc @@ -415,7 +415,7 @@ struct CmdProfileUpgrade : virtual SourceExprCommand, MixDefaultProfile, MixProf for (size_t i = 0; i < manifest.elements.size(); ++i) { auto & element(manifest.elements[i]); if (element.source - && !element.source->originalRef.input.isImmutable() + && !element.source->originalRef.input.isLocked() && matches(*store, element, i, matchers)) { upgradedCount++; diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 60454471d..575eb0c4c 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -627,8 +627,8 @@ void NixRepl::loadFlake(const std::string & flakeRefS) throw Error("cannot use ':load-flake' without a path specified. (Use '.' for the current working directory.)"); auto flakeRef = parseFlakeRef(flakeRefS, absPath("."), true); - if (evalSettings.pureEval && !flakeRef.input.isImmutable()) - throw Error("cannot use ':load-flake' on mutable flake reference '%s' (use --impure to override)", flakeRefS); + if (evalSettings.pureEval && !flakeRef.input.isLocked()) + throw Error("cannot use ':load-flake' on locked flake reference '%s' (use --impure to override)", flakeRefS); Value v; |