Skip to content

turbo watch does not rerun task on changes in .gitignore'd files #11206

@ygrandgirard

Description

@ygrandgirard

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/ygrandgirard/turbo-watch-windows-repo

Which canary version will you have in your reproduction?

At the time of writing, the most recent version is the latest (2.6.3) and not a canary.

Environment information

> npx turbo info
turbo 2.6.3

CLI:
   Version: 2.6.3
   Path to executable: <PROJECT_PATH>\node_modules\turbo-windows-64\bin\turbo.exe
   Daemon status: Not running
   Package manager: npm

Platform:
   Architecture: x86_64
   Operating system: windows
   WSL: false
   Available memory (MB): 5534
   Available CPU cores: 16

Environment:
   CI: None
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): unknown
   stdin: false

Expected behavior

turbo watch should react to changes in .gitignore'd files, at least if they are part of the task inputs.
Actually, when running npx create-turbo, the generated code defines a build task depending on .env.* files which are also .gitignore'd.

It works fine with WSL.

Actual behavior

Nothing happens.

To Reproduce

  • Clone the repository
  • npm ci
  • echo package.json >> .gitignore
  • npx turbo watch build --ui=stream --log-order=grouped
  • Edit the package.json file of any app or package

As soon as I edit package.json out of the .gitignore file, updates are picked up again.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:watchIssues about watch mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions