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

lib.getExe is broken when contentAddressedByDefault = true; #12577

Open
wanderer opened this issue Feb 27, 2025 · 0 comments
Open

lib.getExe is broken when contentAddressedByDefault = true; #12577

wanderer opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@wanderer
Copy link

wanderer commented Feb 27, 2025

Describe the bug

using the repl with a flake that has contentAddressedByDefault = true;

nix-repl>:lf .
nix-repl d = nixosConfigurations.mymachine.pkgs.writeShellApplication { name = "test"; text = "";}
nix-repl> d
[2 built, 0.0 MiB DL]«derivation /nix/store/fwy3r5aff49bfig1w5iw2lw3kjbwajbx-test.drv»

nix-repl> nixosConfigurations.mymachine.lib.getExe d
"/1h39q25ll13mw8b6kiw6jw87amsx6sw25apckma7kmpgrq044414/bin/test"

nix-repl> :b d

This derivation produced the following outputs:
  out -> /nix/store/1ynn7k5yd6v9g378r8m8y3ig2i80dym5-test
[2 built, 0.0 MiB DL]

Expected behavior

getExe should return /nix/store/1ynn7k5yd6v9g378r8m8y3ig2i80dym5-test/bin/test

Metadata

nix-env (Nix) 2.24.12

Checklist


Add 👍 to issues you find important.

@wanderer wanderer added the bug label Feb 27, 2025
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