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

flakes: nix develop: derivation ... has incorrect output ..., should be ... #3770

Closed
FRidh opened this issue Jul 1, 2020 · 5 comments
Closed
Labels

Comments

@FRidh
Copy link
Member

FRidh commented Jul 1, 2020

Describe the bug
Using 2.4pre20200622_334e26b from Nixpkgs I get the following when using nix develop on a Flake where the derivation accessed has multiple outputs.

Steps To Reproduce

$ nix develop
error: --- Error ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
error: --- Error --- nix-daemon
derivation '/nix/store/yjxddymbpgcclrfimqryjcyxjqii0sp0-python3.8-vibro-dev-env.drv' has incorrect output '/nix/store/s13ck6m19fcfmz1whnli5kbf701dg73z-python3.8-vibro-dev-doc', should be '/nix/store/ldbn5g2ybkrmafilknxwbrz0b8771agw-python3.8-vibro-dev-env-doc'

Removing the multiple outputs, leaving only "out" works around the issue.

I also tried with

/nix/store/0czaqb3a461q886xwagjky01pxs7p6y4-nix-2.4pre20200629_26cf0c6/bin/nix

but that led to a core dump.

Expected behavior

nix-env --version output

@FRidh FRidh added the bug label Jul 1, 2020
@FRidh FRidh changed the title nix develop: derivation ... has incorect output ..., should be ... nix develop: derivation ... has incorrect output ..., should be ... Jul 1, 2020
@FRidh
Copy link
Member Author

FRidh commented Jul 1, 2020

Older occurrence of the error #2315
Supposedly fixed in aef635d.

@FRidh
Copy link
Member Author

FRidh commented Jul 1, 2020

Judging from the lines changed in the previous fix and what has changed there I imagine it is related to 2f0e395 and thus #3649.

Actually, no. That was not yet merged in Nix at 334e26b.

@FRidh
Copy link
Member Author

FRidh commented Jul 2, 2020

When using develop on a nixpkgs.mkShell I get

error: stack overflow (possible infinite recursion)

@FRidh
Copy link
Member Author

FRidh commented Jul 2, 2020

When having an inputsFrom in mkShell the error is

querying info about missing pathserror: stack overflow (possible infinite recursion)

@FRidh FRidh changed the title nix develop: derivation ... has incorrect output ..., should be ... Flake: nix develop: derivation ... has incorrect output ..., should be ... Jul 2, 2020
@FRidh FRidh changed the title Flake: nix develop: derivation ... has incorrect output ..., should be ... flakes: nix develop: derivation ... has incorrect output ..., should be ... Jul 2, 2020
@FRidh
Copy link
Member Author

FRidh commented Jul 6, 2020

Fixed with 68f524d.

@FRidh FRidh closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant