ca-derivations
downstream placeholder does not start with storeDir
#12361
Labels
bug
ca-derivations
Derivations with content addressed outputs
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
store
Issues and pull requests concerning the Nix store
Milestone
Describe the bug
Do
ca-derivations
downstream placeholders need to of the format/[a-z0-9]{52}
?The current behavior leads to bugs in code that is not aware of this behavior (e.g. NixOS/nixpkgs#261512), and even when the code is fixed, this placeholder is incomprehensible when it leaks out in e.g. thrown errors in the Nix language.
Steps To Reproduce
Expected behavior
A placeholder contains the
storeDir
andname
, so that relevant info about the placeholder can be understood by code and humans.If there's a store layer benefit, we could even handle this at the language level, but changing the store layer to work with store path-like placeholders seems like a simpler and more complete solution.
Metadata
Additional context
nixpkgs.config.contentAddressedByDefault = true;
nixpkgs#261512pathInStore
nixpkgs#377007Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: