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

Get rid of basicDerivation::findOutput #3855

Merged
merged 1 commit into from Jul 23, 2020

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Jul 23, 2020

It's a tiny function which is:

  • hardly worth abstrating over, and also only used once.

  • doesn't work once we get CA drvs

I rewrote the one callsite to be forwards compatable with CA
derivations, and also potentially more performant: instead of reading in
the derivation it can ust consult the SQLite DB in the common case.

CC @regnat

@Ericson2314 Ericson2314 changed the title Get rid of asicDerivation::findOutput Get rid of basicDerivation::findOutput Jul 23, 2020
It's a tiny function which is:

 - hardly worth abstrating over, and also only used once.

 - doesn't work once we get CA drvs

I rewrote the one callsite to be forwards compatable with CA
derivations, and also potentially more performant: instead of reading in
the derivation it can ust consult the SQLite DB in the common case.
@edolstra edolstra merged commit a7b8f79 into NixOS:master Jul 23, 2020
@Ericson2314 Ericson2314 deleted the delete-find-output branch July 23, 2020 14:57
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.

None yet

2 participants