Merge pull request #11322 from NixOS/eval-cache-doc

doc: Manage expectations for eval-cache
This commit is contained in:
tomberek 2024-08-19 13:50:15 -04:00 committed by GitHub
commit 1ff0a983d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -141,6 +141,8 @@ more than 2800 commits from 195 contributors since release 2.3.
the evaluation cache. This is made possible by the hermetic the evaluation cache. This is made possible by the hermetic
evaluation model of flakes. evaluation model of flakes.
Intermediate results are not cached.
* The new `--offline` flag disables substituters and causes all * The new `--offline` flag disables substituters and causes all
locally cached tarballs and repositories to be considered locally cached tarballs and repositories to be considered
up-to-date. up-to-date.

View file

@ -185,7 +185,11 @@ struct EvalSettings : Config
)"}; )"};
Setting<bool> useEvalCache{this, true, "eval-cache", Setting<bool> useEvalCache{this, true, "eval-cache",
"Whether to use the flake evaluation cache."}; R"(
Whether to use the flake evaluation cache.
Certain commands won't have to evaluate when invoked for the second time with a particular version of a flake.
Intermediate results are not cached.
)"};
Setting<bool> ignoreExceptionsDuringTry{this, false, "ignore-try", Setting<bool> ignoreExceptionsDuringTry{this, false, "ignore-try",
R"( R"(