You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edolstra opened this issue
Apr 30, 2024
· 2 comments
Labels
breakingChanges we can't make without breaking old expressions, changing hashes, etcbugflakeslanguageThe Nix expression language; parser, interpreter, primops, evaluation, etc
the tree gets copied into the store as /nix/store/<hash1>-<hash2>-source. This is because (pre lazy-trees) the basename of the tree is /nix/store/<hash2>-source.
This double-copying is obviously undesirable, but we can't fix it without a breaking change (i.e. without changing derivation paths).
On lazy-trees, we can at least avoid writing /nix/store/<hash2>-source to disk, but we do need to hash the input to compute <hash2>. (See c5ae41d.)
Steps To Reproduce
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
we could already improve on the user experience here by warning the user to avoid such paths.
roberth
added
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
breaking
Changes we can't make without breaking old expressions, changing hashes, etc
labels
Jul 5, 2024
breakingChanges we can't make without breaking old expressions, changing hashes, etcbugflakeslanguageThe Nix expression language; parser, interpreter, primops, evaluation, etc
Describe the bug
In a flake with a derivation attribute like
the tree gets copied into the store as
/nix/store/<hash1>-<hash2>-source
. This is because (pre lazy-trees) the basename of the tree is/nix/store/<hash2>-source
.This double-copying is obviously undesirable, but we can't fix it without a breaking change (i.e. without changing derivation paths).
On lazy-trees, we can at least avoid writing
/nix/store/<hash2>-source
to disk, but we do need to hash the input to compute<hash2>
. (See c5ae41d.)Steps To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
nix-env --version
outputAdditional context
Add any other context about the problem here.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: