-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: respect gitignore during turbo prune #9711
feat: respect gitignore during turbo prune #9711
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@thebrubaker is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Just a few minor changes around error handling, but otherwise it looks good. If you could also merge in thebrubaker#2 so we get some unit test coverage for this behavior it would be appreciated!
chore(fs): add unit test for .gitignore behavior
Co-authored-by: Chris Olszewski <[email protected]>
Co-authored-by: Chris Olszewski <[email protected]>
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
1 similar comment
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
I love it when brown bears make contributions. (More seriously, though. Thank you, @thebrubaker!) |
happy to help! thanks for the great collaboration flow |
Description
This PR addresses #1292 so that
turbo prune
now respects.gitignore
patterns so that files excluded via.gitignore
are properly omitted from the pruned output.Testing Instructions
You can test the built CLI against this repository confirming that secret.txt is not added to the output with turbo prune: https://github.com/thebrubaker/turbo-prune-test