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

recursive_turbo_invocations after updating turbo from 2.5.2 to 2.5.4 #10528

@ocavue

Description

@ocavue

Verify canary release

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

Link to code that reproduces this issue

ocavue/starter-monorepo#16

Which canary version will you have in your reproduction?

2.5.4-canary.1

Environment information

CLI:
   Version: 2.5.4-canary.1
   Path to executable: /Users/ocavue/code/github/starter-monorepo/node_modules/.pnpm/turbo-darwin-arm64@2.5.4-canary.1/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm9

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

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): iTerm.app
   Terminal program version (TERM_PROGRAM_VERSION): 3.5.14
   Shell (SHELL): /bin/zsh
   stdin: false

Expected behavior

Using turbo v2.5.2 is fine:

❯ git clone https://github.com/ocavue/starter-monorepo /tmp/starter-monorepo-turbo-252
❯ cd /tmp/starter-monorepo-turbo-252
❯ pnpm install
❯ pnpm run build

> @starter-monorepo/monorepo@0.0.0 build /private/tmp/starter-monorepo-turbo-252
> turbo run build

╭──────────────────────────────────────────────────────────────────────────╮
│                                                                          │
│                     Update available v2.5.2 ≫ v2.5.4                     │
│    Changelog: https://github.com/vercel/turborepo/releases/tag/v2.5.4    │
│             Run "npx @turbo/codemod@latest update" to update             │
│                                                                          │
│          Follow @turborepo for updates: https://x.com/turborepo          │
╰──────────────────────────────────────────────────────────────────────────╯
turbo 2.5.2

 Tasks:    3 successful, 3 total
Cached:    0 cached, 3 total
  Time:    5.579s

❯

Actual behavior

v2.5.4 fails the build:

❯ git clone https://github.com/ocavue/starter-monorepo --branch ocavue/deps-turbo /tmp/starter-monorepo-turbo-254
❯ cd /tmp/starter-monorepo-turbo-254
❯ pnpm install
❯ pnpm run build

> @starter-monorepo/monorepo@0.0.0 build /private/tmp/starter-monorepo-turbo-254
> turbo run build

turbo 2.5.4

• Running build
• Remote caching disabled
recursive_turbo_invocations (link)

  × Your `package.json` script looks like it invokes a Root Task (//#build), creating a loop of `turbo` invocations. You likely have misconfigured your scripts and tasks or your package manager's Workspace structure.
    ╭─[/private/tmp/starter-monorepo-turbo-254/package.json:10:14]
  9 │     "dev": "turbo run dev",
 10 │     "build": "turbo run build",
    ·              ────────┬────────
    ·                      ╰── This script calls `turbo`, which calls the script, which calls `turbo`...
 11 │     "lint": "eslint .",
    ╰────

 ELIFECYCLE  Command failed with exit code 1.

❯

To Reproduce

See steps above

Additional context

N/A

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