这是indexloc提供的服务,不要输入任何密码
Skip to content

.gitignore files are not included in pruned directory since 2.3.4 and this doesn't seem configurable #9789

@Artsu

Description

@Artsu

Verify canary release

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

Link to code that reproduces this issue

Which canary version will you have in your reproduction?

2.3.4

Enviroment information


Expected behavior

Turbo 2.3.4 included this PR which makes turbo prune ignore all the files in .gitignore. While it is understandable why people might want this to happen, it should also be configurable which it doesn't seem to be or is not documented.

Actual behavior

Files in .gitignore are always filtered out in turbo prune and this cannot be turned off

To Reproduce

  1. Have a file ignored.txt in project package
  2. Add ignored.txt to .gitignore
  3. Run turbo prune
  4. ignored.txt is not included in the pruned output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions