Skip to content

Fix eval caching for path flakes #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: detsys-main
Choose a base branch
from
Open

Conversation

edolstra
Copy link
Collaborator

Motivation

A user reported that eval caching doesn't work in DetSys Nix for path flakes.

This fix is somewhat hacky since the accessor/input fingerprint situation is a bit of a mess.

Context

edolstra added 2 commits June 27, 2025 17:59
This fix is somewhat hacky since the accessor/input fingerprint
situation is a bit of a mess.
@@ -354,6 +354,8 @@ std::pair<ref<SourceAccessor>, Input> Input::getAccessorUnchecked(ref<Store> sto

if (!accessor->fingerprint)
accessor->fingerprint = result.getFingerprint(store);
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you note "this is kinda hacky" in the PR body, should we add a FIXME here with some context on why that is and how it could be fixed at some point?

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants