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

Turbo prune incorrectly excluding .gitignore files with !pattern #9793

Open
1 task done
eddieliccardo opened this issue Jan 24, 2025 · 1 comment
Open
1 task done
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage

Comments

@eddieliccardo
Copy link

eddieliccardo commented Jan 24, 2025

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/eddieliccardo/turborepo-gitignore-bug-2

Which canary version will you have in your reproduction?

2.3.5-canary.0

Enviroment information


Expected behavior

Files explicitly included in .gitignore using !pattern should be included in the output of turbo prune.

Actual behavior

Files are not included starting with v2.3.4. In v2.3.3, all files in the .gitignore are included so this is not an issue.

To Reproduce

Clone repo and run turbo prune app-a. The file apps/app-a/test-gitignore/include.ts should be included but it is not.

Additional context

No response

@anthonyshew
Copy link
Contributor

This is a bug upstream of us. In the meantime, #9797 will be a part of next release to workaround this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

No branches or pull requests

2 participants