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

nix: use gitignore.nix to clean engines source #3631

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

tomhoule
Copy link
Contributor

This replaces custom filter functions with gitignore rules. They are easier to read, more familiar, and we can leverage our existing .gitignore.

Using this, I observed we could cache (expensive, long) builds of the prisma-engines packages a lot more often in development.

I also tried nix-gitignore, but it was not producing a stable hash without changes in the non-gitignored files.

This replaces custom filter functions with gitignore rules. They are
easier to read, more familiar, and we can leverage our existing
.gitignore.

Using this, I observed we could cache (expensive, long) builds of the
prisma-engines packages a lot more often in development.

I also tried nix-gitignore, but it was not producing a stable hash
without changes in the non-gitignored files.
@tomhoule tomhoule added this to the 4.10.0 milestone Jan 26, 2023
@tomhoule tomhoule marked this pull request as ready for review January 26, 2023 12:09
@tomhoule tomhoule merged commit 35b907e into main Jan 27, 2023
@tomhoule tomhoule deleted the nix-prisma-engines-source-stability branch January 27, 2023 05:15
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