-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 dump-path
requires nix-command to be enabled
#11225
Comments
`nix dump-path` regressed, and now requires flakes to be enabled, breaking nix-serve on systems without flakes being enabled. However, `nix-store --dump` works fine across the board, so use that. Nix issue: NixOS/nix#11225 Workaround in nixpkgs: NixOS/nixpkgs#331230
I can't reproduce this.
works fine. Note that if you run |
See NixOS/nixpkgs#331230, try running the passthru tests from a nixpkgs checkout without adding Nix 2.3 to $PATH, but pkgs.nix. |
nix dump-path
requires flakes to be enablednix dump-path
requires nix-command to be enabled
Running it without a parameter indeed exposes the flake behaviour (and error message). The nixpkgs test is however also failing, due to the |
The |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-07-31-nix-team-meeting-minutes-166/49972/1 |
Describe the bug
Used to work fine in Nix 2.3, and probably a few other recent Nix versions.
Used in
nix-serve
for example: https://github.com/edolstra/nix-serve/blob/master/nix-serve.psgi#L66, effectively breaking it on systems withoutnix-command
being enabled.Expected behavior
Don't gate
nix dump-path
behind thenix-command
xp. It was "stable" before, and there's code (like nix-serve) out there relying on it.nix-env --version
outputAdditional context
Add any other context about the problem here.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: