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

"missing tasks" when using root task + filters #9619

@benjick

Description

@benjick

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/benjick/missing-tasks-filter-root-repro

Which canary version will you have in your reproduction?

2.3.4-canary.2

Enviroment information

turbo info
turbo 2.3.4-canary.2

CLI:
   Version: 2.3.4-canary.2
   Path to executable: /Users/max/dev/missing-tasks-filter-root-repro/node_modules/.pnpm/turbo-darwin-arm64@2.3.4-canary.2/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm

Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 14359
   Available CPU cores: 10

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): WarpTerminal
   Terminal program version (TERM_PROGRAM_VERSION): v0.2024.12.10.15.55.stable_03
   Shell (SHELL): /opt/homebrew/bin/fish
   stdin: false

Expected behavior

When running turbo run --filter=!pkg-b build root, where root is a root task ("//#root") I expected turbo to execute the task

Actual behavior

  × missing tasks in project

Error:   × could not find task `root` in project

To Reproduce

Clone https://github.com/benjick/missing-tasks-filter-root-repro
run pnpm error

Additional context

It works if I run turbo run --filter=!pkg-b build //#root

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't workingneeds: triageNew issues get this label. Remove it after triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions