Skip to content
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

Should we run .../node-packages/generate.sh in batches instead of on every new package? #322064

Closed
tomodachi94 opened this issue Jun 24, 2024 · 4 comments

Comments

@tomodachi94
Copy link
Member

tomodachi94 commented Jun 24, 2024

Should we run pkgs/development/node-packages/generate.sh in batches instead of on every new package?

Currently:

If this is a bad idea, please tell me :) I'm not very familiar with nodePackages.

Proposal

Run node-packages/generate.sh on a weekly (or other time period) basis (either manually or automatically), instead of instructing developers to run it when adding a new package.

Discourage developers from running the script when adding a new package.

Considerations

Would the Node team become overwhelmed by this?

Should we automate the proposed process (sans merging)?

Is this even worth formalizing, considering that we are actively phasing out packages in nodePackages?

Maintainers

Pinging @NixOS/node.

@tomodachi94
Copy link
Member Author

tomodachi94 commented Jun 24, 2024

We could also modify generate.sh to support adding/updating specific attributes, but I'm not sure how difficult this would be to implement.

@pyrox0
Copy link
Member

pyrox0 commented Jun 25, 2024

I don't think this should be formalized, as we should be working to remove as many packages as possible from node-packages into the main set, or drop those that are unused. For instance, why is bower still listed? It's been unmaintained for many years now(last commit was 2 years ago), and thus I feel it should be dropped. Doing any sort of regular maintainence on the set is a hassle, and I think setting up CI for it only encourages the migration to take longer than it has to. Also, you have to run the script to add it to node-packages.nix anyways, so it would have to be run whether or not it's autorun in CI.

Edit 1: I honestly think that the node-packages package set should be frozen, and dependencies shouldn't be updated, as it causes a massive amount of churn. Packages should just be migrated out as necessary, but the ones there currently should not be updated, as that also encourages migrating packages away if people want them to be updated.

@SuperSandro2000
Copy link
Member

node2nix doesn't support running this in batches or parallel.

Also see previous comment

@SuperSandro2000 SuperSandro2000 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
@tomodachi94
Copy link
Member Author

node2nix doesn't support running this in batches or parallel.

Yes, I'm aware.

Proposal

Run node-packages/generate.sh on a weekly (or other time period) basis (either manually or automatically), instead of instructing developers to run it when adding a new package.

But I agree that we should probably freeze the package set (except for package removals).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants