-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Revise division of labor in deserialization of derivations #3434
Merged
edolstra
merged 10 commits into
NixOS:master
from
Ericson2314:derivation-header-include-order
Aug 27, 2020
Merged
Revise division of labor in deserialization of derivations #3434
edolstra
merged 10 commits into
NixOS:master
from
Ericson2314:derivation-header-include-order
Aug 27, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@edolstra This little PR look OK to you? I have a lot of changes I'd like to land so don't want to accumulate too much of a backlog. |
Ericson2314
force-pushed
the
derivation-header-include-order
branch
from
June 1, 2020 20:57
646ec61
to
bcde545
Compare
This further continues with the dependency inverstion. Also I just went ahead and exposed `parseDerivation`: it seems like the more proper building block, and not a bad thing to expose if we are trying to be less wedded to drv files on disk anywas.
Ericson2314
changed the title
Flip dependency so store-api.hh includes derivations.hh
Define derivations before store
Jun 17, 2020
Renamed because this is now a bit more than merely flipping the dependency. |
Ericson2314
changed the title
Define derivations before store
WIP: Define derivations before store
Jun 17, 2020
Ericson2314
changed the title
WIP: Define derivations before store
Define derivations before store
Jul 16, 2020
Ericson2314
changed the title
Define derivations before store
Revise division of labor in deserialization derivations
Aug 1, 2020
Ericson2314
changed the title
Revise division of labor in deserialization derivations
Revise division of labor in deserialization of derivations
Aug 2, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now:
No
Store
methods are defined inderivations.cc
parseDerivation
on the underlying string is exposed, since that is the root functionality. (It might be better to make this take an arbitrarystd::istringstream
at some point.)Store::derivationFromPath
andStore::readDerivation
are defined less redundantly.I think it makes more sense to define the data model (derivations), before the operations (store api).This has already been done by other already-merged PRs.