Skip to content

"Expected concurrency to be a number from 1 and up" #9297

@moonglum

Description

@moonglum

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.6.3

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  • Run a task with --workspace-concurrency=-1
  • It errors with ERROR  Expected concurrency to be a number from 1 and up

Describe the Bug

This seems to have been introduced with 10.6.X as this works as expected on 10.5.2.

We are using the -1 value for workspace concurrency as documented here to set it to "use amount of cores of the host". This no longer works.

Expected Behavior

The value -1 should be allowed, and set it to the number of cores of the host.

Which Node.js version are you using?

22.14.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Alpine 3.20 (Docker Container)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions