nix develop does not correctly remove checks from __structuredAttrs #534

Open
opened 2024-09-26 00:03:12 +00:00 by jade · 0 comments
Owner

Fun fact (not fun): #533 is caused by the same derivation in nixpkgs: neovim-unwrapped.

Broken code: 0dd1d8ca1c/src/nix/develop.cc (L230-L235)

Repro (which is written like this just because i dont want to depend on flakes in my repro, not because it doesn't affect flakes):

$ nix develop -f 'flake:github:nixos/nixpkgs/7f7842a0997ceaaf7085d84276b068e96d13e1ed' neovim-unwrapped
error: output '/nix/store/dvkyx6qzs7p533bck6j65s18k857cmxy-neovim-unwrapped-0.10.1-env-debug' is not allowed to refer to the following paths:
         /nix/store/9bi0j9rsfsgkbmjkl4j31kbm8k4pla0d-luajit-2.1.1713773202-env
         /nix/store/zznja5f8v3jafffyah1rk46vpfcn38dv-gcc-wrapper-13.3.0

nix (Lix, like Nix) 2.92.0-dev-pre20240918-79246a3

Fun fact (not fun): #533 is caused by the same derivation in nixpkgs: `neovim-unwrapped`. Broken code: https://git.lix.systems/lix-project/lix/src/0dd1d8ca1cdccfc620644a7f690ed35bcd2d1e74/src/nix/develop.cc#L230-L235 Repro (which is written like this just because i dont want to depend on flakes in my repro, not because it doesn't affect flakes): ``` $ nix develop -f 'flake:github:nixos/nixpkgs/7f7842a0997ceaaf7085d84276b068e96d13e1ed' neovim-unwrapped error: output '/nix/store/dvkyx6qzs7p533bck6j65s18k857cmxy-neovim-unwrapped-0.10.1-env-debug' is not allowed to refer to the following paths: /nix/store/9bi0j9rsfsgkbmjkl4j31kbm8k4pla0d-luajit-2.1.1713773202-env /nix/store/zznja5f8v3jafffyah1rk46vpfcn38dv-gcc-wrapper-13.3.0 ``` `nix (Lix, like Nix) 2.92.0-dev-pre20240918-79246a3`
jade added the
bug
E/help wanted
E/reproducible
Area/cli
labels 2024-09-26 00:03:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#534
No description provided.