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

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

@eddieliccardo

Description

@eddieliccardo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions