-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
RFC 140 migration plan #258650
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-10-03-nixpkgs-architecture-team-meeting-44/33798/1 |
What if I don't want my packages to be trapped in this experimental feature? It doesn't solve any problem for me personally, so it can only create new ones like |
Then you would have had about 7 months of time between the initial proposal and the end of FCP to add your concerns to the extensive discussion. You did so just now, so I would like to kindly ask you to keep this kind of the debate out of this thread which explicitly is about the implementation only. :) |
We don't have package owners. Everybody is allowed to submit PRs against any package.
This isn't an experimental feature; it's the future and it's long overdue. I have plenty of automation that gets broken constantly because there is no reliable way to map from attrnames to files. Overlays get silently disabled when I rebase nixpkgs because there's no restrictions on what code can see which files -- I can't count the number of times my override-patches have been silently dropped because somebody rewired |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-11-28-nixpkgs-architecture-team-meeting-46/36171/1 |
There will be now for packages that are in this but there will be still plenty of interesting packages left, especially the more complicated ones.
Except for versioned attrs people should create aliases which should make this manageable. I also have a good forest of extra commits and overlays and I mostly touch them when things changed in the exact same files I was changing. Changing some things with overrides is a bit more complicated than directly touching the code especially if you plan to upstream it anyway. With this change still everything sees everything. I don't see how that definitely solves your problems.
If I tell that some people about some of their beloved packages then they would walk up the next wall. Also this contradicts what you wrote below. If anyone can change anything at will then sure things break for others break left, right and center. Be it your overlays or my commits. |
What happens to |
This PR makes progress on points 0. and 1.: #272395 |
@infinisil Maybe there's a way to reconcile the concerns about breaking update scripts. A regex fishing for |
@blaggacao I think with the gradual transition enabled by approaches like #272395 that's totally a possibility. Once I get to running the automation, I'll do some quick grepping for |
Two new PRs:
|
Is the automatic migration still planned? Is this the next step, or do we need anything else? |
@katexochen Indeed I'm still planning to do that, I'll try to get it done as soon as possible. It's the next and final step 😃 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixpkgs-merge-bot-testing-and-plan/39824/1 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-54/39990/1 |
Hi, what's the progress on this? |
@Atemu In recent weeks we moved the tooling to a separate repo and got more people involved in contributions, so development speed is going faster now: https://github.com/NixOS/nixpkgs-check-by-name Still not done, but work in on-going :) |
What about the automatic migration? Should we still wait now, or slowly migrate these packages during the update process? |
Yeah that's still planned too, so I'd still wait. There's no real harm in delaying that until after, when we'll see the ones that can't be automatically migrated. |
I just wrote down this thorough description of the current state and plan regarding the implementation of the automated migration: NixOS/nixpkgs-vet#56 tl;dr: It's quite tricky but doable! |
Here's my current plan to implement part 2 of RFC 140:
pkgs/by-name
CI check:pkgs/by-name
CI checks #256788pkgs/by-name
to not be defined with an{ }
argument inall-packages.nix
:pkgs/by-name
package definitions inall-packages.nix
with an empty argument #256792pkgs/by-name
: Enable gradual migration checks and addrun-local.sh
#274591callPackage
to usepkgs/by-name
pkgs/by-name
, make--base
required #278805pkgs/by-name
: Enforce for new packages #275539callPackage ./foo.nix { foo = bar; }
)Ping the Nixpkgs Architecture Team, @roberth @Ericson2314 @tomberek @aakropotkin @DavHau @phaer
The text was updated successfully, but these errors were encountered: