-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
nixos/tests/misc: support old and new path-info output structure #315857
Conversation
@nixos/nix-team Why in the world is Nixpkgs even testing against Nix experimental commands? That's exactly how you make them unchangeable or annoy everyone with breakages. Looking at commit history, this has been added before experimental features were a thing. I suggest removing that test and only adding it back when the command is stabilized. |
Going to untag as channel-blocker as the Nix bump was reverted. |
I think we are beyond a point where we can no longer reasonable treat these commands as experimental. Even if it doesn't break in nixpkgs, it will still break other users, since these commands have been cooking for too long in an "experimental" state. |
If it broke, then yes, |
Yeah. Terrible name. I will come up with something else. |
This command has been present since Nix 2.0 and was added to the NixOS misc tests during the Nix 2.0 bump PR (https://github.com/NixOS/nixpkgs/pull/34636/files#diff-5eb2258233433ba8710976a266f30f16a70d92c633d36706072a095f91dc50a9R38) I'm just providing context, though, so I won't make any comment either way about whether it's appropriate the command was later made "experimental" when that ability was added (like the |
Tested that this, fixes the nix upgrade. I currently don't see a good replacement for this command in the old cli interface. If we make sure that we run this NixOS test on every nix version bump, than we can also fix it. |
I will say, I mean for things to be experimental because I intend to make breaking changes. It's quite simple. I caused this breaking change, and I have further changes to the format in NixOS/nix#9995, and probably more after that. Per the issue through, the JSON guidelines need to be further fleshed out, and this (and other interfaces) need to be brought into compliance. The unstable interface of Nix grew much faster than our ability to maintain it, or make it adequate quality. It's a hard problem to solve without a more developer hours. |
There is a mishmash of
That's true. If we the tests make clear they are not locking down features users should rely on, but just sanity checking Nixpkgs' own internal usage of experimental stuff, it is less bad. |
Description of changes
#315262 (comment)
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.