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

Ensure that a built path always has an associated realisation #4725

Closed
thufschmitt opened this issue Apr 21, 2021 · 0 comments · Fixed by #4732
Closed

Ensure that a built path always has an associated realisation #4725

thufschmitt opened this issue Apr 21, 2021 · 0 comments · Fixed by #4732
Assignees
Labels
ca-derivations Derivations with content addressed outputs

Comments

@thufschmitt
Copy link
Member

If a pure input-addressed path is built without the ca-derivations experimental feature, then its associated realisations will never be stored (because next time Nix is asked to build it, it will bypass most of the build loop, and in particular skip the output registration step).
The same thing happens if the path is substituted from a remote store.

This is annoying, because it would be much more convenient in higher-level code to just be able to assume that the realisations are here − and more than being inconvenient, this is a call for bugs (like #4721 which is precisely an instance of this)

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 a pull request may close this issue.

1 participant