-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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: delay/remove 4 deprecation warnings #72260
Conversation
This issue was seen when, for example, I've tried to nix-shell into docs: ``` $ nix-shell nixpkgs/doc trace: `mkStrict' is obsolete; use `mkOverride 0' instead. trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead! trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN` trace: lib.zip is deprecated, use lib.zipAttrsWith instead nix-shell $ ``` IMO it is clutter, so I did a few adjustments: 1. For multi-arity functions I've moved deprecation warning deeper, so shallow function evaluation doesn't trigger warning message, only deep evaluation does that. 2. Move function to `lib/deprecated.nix`. a) for 0-arity functions (lib.nixpkgsVersion) I've also removed deprecation message, as there is no way to silence it other way. The worst thing is deprecation message removed for `lib.nixpkgsVersion`, but I hope future linters will be able to scan `lib/deprecated.nix` and report deprecated stuff before evaluation.
How about just getting rid of the deprecated stuff? |
those are not used in nixpkgs at all, only as a compat layer. There is also that |
I think we can get rid of |
Update on this? |
@danbst may I ask what's the status on this? |
I marked this as stale due to inactivity. → More info |
This PR is really old and we are not going to undeprecate functions years later. |
This issue was seen when, for example, I've tried to nix-shell into docs:
IMO it is clutter, so I did a few adjustments:
shallow function evaluation doesn't trigger warning message, only deep evaluation does that.
lib/deprecated.nix
.a) for 0-arity functions (lib.nixpkgsVersion) I've also removed deprecation
message, as there is no way to silence it other way.
The worst thing is deprecation message removed for
lib.nixpkgsVersion
, butI hope future linters will be able to scan
lib/deprecated.nix
and report deprecatedstuff before evaluation.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @