-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Manually adding/fetching content-addressed data with references #9912
Comments
This only covers CA objects (and not input-addressed), right? |
@puckipedia Yes. It is less clear to me how one can safely manually create an input-addressed path. |
I meant references on input-addressed paths; as i was somewhat (but possibly wrongly, due to issue 5509) under the impression CA paths couldn't refer to input addressed paths. |
Content-addressed store objects can in fact refer to non-CA store objects, because current references are always merely a set of store paths. I'm not totally comfortable with that, but the way that would change would be with the creation of a new "deeply content-addressed" flavor of store object, which would have to proove the deepness by storing the references in a different format. The existing form would continue to exist. |
As @fricklerhandwerk and I discussed on a few occasions, I think Nix has too much lingering traces of a "sources vs builds" dichotomy: in particular, it there should not be artificial restrictions on the ways that content-addressed store objects are created.
I recently got us closer to this by making all
ContentAddressMethods
be supported onStore::addToStore
and friends. However, reference are still a weak sport;This was a sort of low-priority missing feature for me until #9911 came around: IIUC @puckipedia has this exact use case and a perhaps-dubious bugix broke her work-around in lieu of Nix properly supporting this feature. If we're going to continue treating that change as a proper bug-fix, we better damn well support the feature properly.
The text was updated successfully, but these errors were encountered: