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

nix build creates a result-${outName} symlink unexpectedly #9447

Open
roberth opened this issue Nov 24, 2023 · 0 comments
Open

nix build creates a result-${outName} symlink unexpectedly #9447

roberth opened this issue Nov 24, 2023 · 0 comments
Labels
bug new-cli Relating to the "nix" command

Comments

@roberth
Copy link
Member

roberth commented Nov 24, 2023

Describe the bug

nix build's result symlink filename depends on how the output was created, which is quite unexpected and catches me off guard whenever I build a single output.

Steps To Reproduce

  1. nix build nix#nix.doc
  2. xdg-open result/share/doc/nix/manual/index.html
  3. 💥 didn't build the docs? no, the result symlink was wrong.

Alternatively, try to build and then run a package that has a bin outputs, such as those from Nixpkgs Haskell enableSeparateBinOutput.

Expected behavior

nix build always produces a build or build-${n} symlink regardless of how a package implements its package outputs - whether that's through multi-output derivations or multiple derivations. Store-level details such as the output name are insignificant and don't lead to different behaviors on the CLI.

nix-env --version output

Additional context

Priorities

Add 👍 to issues you find important.

@roberth roberth added bug new-cli Relating to the "nix" command labels Nov 24, 2023
@roberth roberth added this to the CLI Stabilisation milestone Nov 24, 2023
@thufschmitt thufschmitt moved this from Defined work to In discussion in Nix implementation board Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new-cli Relating to the "nix" command
Projects
Status: In discussion
Development

No branches or pull requests

1 participant