diff options
author | Qyriad <qyriad@qyriad.me> | 2024-04-04 10:46:44 -0600 |
---|---|---|
committer | jade <lix@jade.fyi> | 2024-04-06 04:35:25 +0000 |
commit | a4ef195a9f4c0e018673a872f8f3020cc5337a36 (patch) | |
tree | 0c6dd483a2073130316b49937f6e2d4fab49870f /src/libexpr/eval-cache.hh | |
parent | b47c159aec9aa5d8d1807319123a53f87624fafa (diff) |
always re-eval cached failures
This is terrible UX, and frankly an eval failure should be a cache
invalidation anyway.
This removes the CachedEvalError type entirely.
Fixes #223.
Change-Id: I91f8003eabd0ea45003024e96d1de3c7ae8e49d8
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index ad6cd74fb..2c57d5dde 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -100,11 +100,11 @@ public: Suggestions getSuggestionsForAttr(Symbol name); - std::shared_ptr<AttrCursor> maybeGetAttr(Symbol name, bool forceErrors = false); + std::shared_ptr<AttrCursor> maybeGetAttr(Symbol name); std::shared_ptr<AttrCursor> maybeGetAttr(std::string_view name); - ref<AttrCursor> getAttr(Symbol name, bool forceErrors = false); + ref<AttrCursor> getAttr(Symbol name); ref<AttrCursor> getAttr(std::string_view name); @@ -112,7 +112,7 @@ public: * Get an attribute along a chain of attrsets. Note that this does * not auto-call functors or functions. */ - OrSuggestions<ref<AttrCursor>> findAlongAttrPath(const std::vector<Symbol> & attrPath, bool force = false); + OrSuggestions<ref<AttrCursor>> findAlongAttrPath(const std::vector<Symbol> & attrPath); std::string getString(); |