diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-08-24 21:19:43 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-08-24 21:19:43 +0200 |
commit | a17ce0a8a9c3dd96d0a5043a80acab0c6810a199 (patch) | |
tree | 64020bf3af1b53ac8efb55ad7a8633fdee856fc0 | |
parent | 04e74f7c8bb5589dec578dd049013d3cd2554e65 (diff) |
Fix evaluation cache
98e361ad4c1a26d4ffe4762a6f33bb9e39321a39 introduced a regression where
previously stored attributes were replaced by placeholders. As a
result, a command like 'nix build nixpkgs#hello' had to be executed at
least twice to get caching.
This code does not seem necessary for suggestions to work.
-rw-r--r-- | src/libexpr/eval-cache.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libexpr/eval-cache.cc b/src/libexpr/eval-cache.cc index 0d83b6cfe..b259eec63 100644 --- a/src/libexpr/eval-cache.cc +++ b/src/libexpr/eval-cache.cc @@ -507,11 +507,6 @@ std::shared_ptr<AttrCursor> AttrCursor::maybeGetAttr(Symbol name, bool forceErro return nullptr; //throw TypeError("'%s' is not an attribute set", getAttrPathStr()); - for (auto & attr : *v.attrs) { - if (root->db) - root->db->setPlaceholder({cachedValue->first, attr.name}); - } - auto attr = v.attrs->get(name); if (!attr) { |