Repository navigation
aliases: remove old throwing lua and writers aliases - #456468
Conversation
|
@wolfgangwalther Idk if should we do something like this in preparation for by-name aliases migration |
wolfgangwalther
left a comment
There was a problem hiding this comment.
Removing old aliases is great, moving stuff to the top-level won't work like that.
|
I think the first two commits were good. |
|
I miss some context I think. Ok for removing old aliases but why remove the infra, is this part of a bigger cleanup There is an existing pattern: What's the recommended way to alias lua packages ? |
|
Yeah, I guess this is a question of philosophy. Without any aliases - this would be dead code, because it's unused. Personally, I'm trying to prune dead code aggressively, we can still introduce it later if we need it. |
|
keep one alias or create one if it's to please tooling. Clearly we will need aliases again so I would rather not have revert infra changes that might hinder the person adding the alias, trigger rereviewing and make it harder for everyone. |
Yeah I agree actually. Was one of the reasons I was hesitant to merge right away. |
|
Indeed, wiping the obviously to-be-needed-again-soon supporting code is unreasonable. |
|
That "supporting code" was neither needed before, nor will it "obviously" be needed again. With the frequency of aliases added for lua-modules over the years (6 aliases in 3+ years...), it is entirely thinkable that this just won't matter anymore the next time an alias needs to be added. Also note that this "infrastructure" has been copied from node-packages.nix (there are even still references to node-packages.nix and its Adding new aliases will be as easy as adding a |
|
yes it was copied from node-packages so I understand the need for deduplication.
I was not familiar with that pattern but it's enough for me to approve this PR. I believe some scripts exist to get rid of old aliases. Does this mean we should keep those aliases in a separate file to help that script ? in which case we might want to keep lua-modules/aliases.nix |
Well, these scripts have never been run, so it's not like we would be breaking anything in practice. We did run them recently, but if everything works out fine, this might have been the last time to do so. The intent is to implement "structured aliases" which would automate the removal without such scripts - and in that case, all the infrastructure here would go away anyway.
OK, will merge, thanks! |
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.