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

Use a combined cache derivation by default #81

Merged
merged 5 commits into from
Feb 6, 2024
Merged

Conversation

stephank
Copy link
Owner

@stephank stephank commented Feb 6, 2024

This adds the ability to generate a single derivation for the entire cache directory (as opposed to individual derivations per dependency), and makes it the new default behavior.

The individual packaging has bothered me for quite a bit, because while it allows granular caching, I've found it is terribly slow in many cases. When there is no cache or preload, each derivation that has to be built takes seconds, because it has to invoke Node.js and load all of Yarn.

The generated yarn-project.nix is also a lot simpler, because there is just one hash now. It works a bit more like buildGoModule or buildRustPackage, in that sense.

@stephank stephank force-pushed the feat/combined-drv branch 4 times, most recently from 6c4b76c to 52e8c7a Compare February 6, 2024 13:04
@stephank stephank merged commit cb6ea2c into main Feb 6, 2024
2 checks passed
@stephank stephank deleted the feat/combined-drv branch February 6, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant