You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"'foo' has been removed due to reason, use 'bar' instead."
automatic rename message would always be
"'foo has been renamed to/replaced by 'bar'"
-> the manual message is more clear
Counter: automatic message is clear enough
second example pr doesn't create an unactionable warning so it doesn't count
Arguments for not adding warnAlias straight away:
When unstable has a warnAlias and stable does not have the new package name, one cannot have a configuration or nixos module that works for both stable and unstable without having countless warnings on unstable.
-> warnings are not actionable without breaking stable
Counter: you can just ignore the warnings
@bjornfor remembers that in the beginning (when they started using NixOS) there were aliases, and eventually they became warnings/errors (after at least one release period). There even exists maintainers/scripts/remove-old-aliases.py, which is built upon the "alias -> warning -> error" flow. As far as they can tell, aliases were never meant to be direct warnings. Going straight to warning for aliases feels to them like some recent development, presumably by people running nixpkgs-unstable exclusively?
I don't care a lot about whether aliases should be warnAliases or not, but getting conflicting reviews on PRs is shitty and creates a deadlock situation.
So either we come to some solution here together or we have to ask the nixpkgs core team or the SC.
Reviewers have been giving conflicting reviews on package renaming PRs.
@gepbird @Hythera @magnetophon @wolfgangwalther @teto & @qweered have been telling to add
warnAliasstraight away:pkgs/by-name#479415 (comment)pkgs/by-name#479415 (comment)@bjornfor has been telling,
warnAliasshould be added after one release cycle or after renames have been backported to stable:Arguments for adding
warnAliasdirectly:faster deprecation
Context of alias gets lost when aliases are converted to
warnAliasmanual rename message could be (e.g. source-highlight: rename from sourceHighlight, enable structuredAttrs #489656)
or (example from xdg-terminal-exec-mkhl: drop #480126)
automatic rename message would always be
-> the manual message is more clear
second example pr doesn't create an unactionable warning so it doesn't count
Arguments for not adding
warnAliasstraight away:warnAliasand stable does not have the new package name, one cannot have a configuration or nixos module that works for both stable and unstable without having countless warnings on unstable.-> warnings are not actionable without breaking stable
maintainers/scripts/remove-old-aliases.py, which is built upon the "alias -> warning -> error" flow. As far as they can tell, aliases were never meant to be direct warnings. Going straight to warning for aliases feels to them like some recent development, presumably by people running nixpkgs-unstable exclusively?Additional Context
maintainers/scripts/remove-old-aliases.pyscript has relatively recently been adapted to the "alias -> warning -> error" flow maintainers/scripts/remove-old-aliases.py: convert aliases to warnings before throwing or removing; aliases: cleanup #427017What now
I don't care a lot about whether aliases should be
warnAliasesor not, but getting conflicting reviews on PRs is shitty and creates a deadlock situation.So either we come to some solution here together or we have to ask the nixpkgs core team or the SC.