Skip to content
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

Don't ignore an absent drv file in queryPartialDrvOutputMap #4373

Merged
merged 1 commit into from Dec 16, 2020

Conversation

thufschmitt
Copy link
Member

This ignore was here because queryPartialDrvOutputMap was used both

  1. as a cache to avoid having to re-read the derivation (when gc-ing for
    example), and
  2. as the source of truth for ca realisations

The use-case 2. required it to be able to work even when the derivation
wasn't there anymore (see #4138).
However, this use-case is now handled by queryRealisation, meaning
that we can safely error out if the derivation isn't there anymore

This ignore was here because `queryPartialDrvOutputMap` was used both
1. as a cache to avoid having to re-read the derivation (when gc-ing for
example), and
2. as the source of truth for ca realisations

The use-case 2. required it to be able to work even when the derivation
wasn't there anymore (see #4138).
However, this use-case is now handled by `queryRealisation`, meaning
that we can safely error out if the derivation isn't there anymore
@thufschmitt thufschmitt added this to the ca-derivations-mvp milestone Dec 16, 2020
@thufschmitt thufschmitt added the ca-derivations Derivations with content addressed outputs label Dec 16, 2020
@edolstra edolstra merged commit fdc8e7c into master Dec 16, 2020
@edolstra edolstra deleted the ca/fix-queryPartialDrvOutputMap-when-no-derivation branch December 16, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ca-derivations Derivations with content addressed outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants