-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Rename inotifyTools
to inotify-tools
#9456
Comments
Yes. |
A mass rename of We don't have a nixpkgs equivalent of nixos/modules/rename.nix, do we? |
At the bottom of
|
Yes, but it would be nice if using deprecated aliases would print a warning during evaluation. |
{
adobeReader = builtins.trace "get yo act together" adobe-reader;
} |
Hmm, perhaps, we can save some typing by: {
# usual package definitions
foo = bar;
} // lib.mapAttrs (name: builtins.trace "Warning: using a deprecated attribute '${name}'") {
# Attributes for backward compatibility.
adobeReader = adobe-reader;
# ...
} I tested this, and it looks good IMHO. Any reason not to have this change, even in 15.09? |
I like it! |
The warning should be more specific.
Note: If there's a more popular (and open) package, use that for the example than just inotifyTools. |
@Havvy: the deprecation of a name might be for different reasons, such us upstream renaming (cool-old-term -> cool-retro-term). We would have to split away this specific naming-unification group, which does make most of all deprecations ATM. |
The aliases are split into two groups, as mass-renaming is anticipated. Also added fold markers as in the rest of file. #9456
Pushed adding the warnings. I'm not sure if the mass-replace should be in 15.09. It would perhaps be better to have more consistent naming between master and 15.09, as we could have some cherry-picking problems later. |
Hello, I'm commenting here since I just saw those warning messages in my shell.
From a user perspective, I have no clue what to do to deal with those messages/packages:
I think there should be some kind of direction in this message, either pointing to an how-to URL, or even giving command to copy/paste to fix the issue. And by the way, I actually have no clue of what would be the clean way to switch to the new package name ^^ |
@Mayeu: if you are using the identifier The message could explain all that, and it could also print the new attribute path, with some refactoring, but there is a more serious problem: ATM it throws this trace for all deprecated attributes when doing |
@Mayeu: anyway, the warnings are reverted for now. |
@vcunat Thank for your response. Some packages are the one that I explicitly installed, and as you said, I did not guess them out of luck. But other are just dependencies that I have no idea were installed. Thus questions ensue. I really think NixOS is a great OS and is the right way of doing package management, and as a recent user I also see all the roughness it has right now. That's why I wanted to jump in to give some input from the «common user» point of view :) |
Feedback is welcome. |
For followup discussion see commit 8e8e23d. |
The aliases are split into two groups, as mass-renaming is anticipated. Also added fold markers as in the rest of file. NixOS#9456 (cherry picked from commit c53018c)
This reverts commit c53018c. This causes problems for "nix-env -qa", so we'll have to come up with a clean solution first. Issue NixOS#9456. (cherry picked from commit 3ea329c)
Fixes NixOS#9456. (cherry picked from commit 9013dc5)
The pakage
inotifyTools
should be calledinotify-tools
, no?The text was updated successfully, but these errors were encountered: