Skip to content

Symlinks produced by nix build are in arbitrary order #7472

@Kha

Description

@Kha

Describe the bug

nix build creates symlinks with suffixes -1, -2, ... when given multiple installables, but not necessarily in an order corresponding to the order given on the cmdline

Steps To Reproduce

$ nix build nixpkgs#hello nixpkgs#cowsay
lrwxrwxrwx 55 sebastian 17 Dec 14:36 result -> /nix/store/3d54xbrqj5zixa0cfnyki09jrffr0g3a-cowsay-3.04
lrwxrwxrwx 56 sebastian 17 Dec 14:36 result-1 -> /nix/store/g2m8kfw7kpgpph05v2fxcx4d5an09hl3-hello-2.12.1

Expected behavior

result should be the result of the first given installable etc.

nix-env --version output

nix-env (Nix) 2.11.0

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnew-cliRelating to the "nix" command

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions