-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
good first issueGood for newcomersGood for newcomerskind: bugSomething isn't workingSomething isn't working
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
Which canary version will you have in your reproduction?
2.3.4-canary.2
Enviroment information
turbo 2.3.4-canary.2
CLI:
Version: 2.3.4-canary.2
Path to executable: /project/workspace/node_modules/.pnpm/turbo-linux-64@2.3.4-canary.2/node_modules/turbo-linux-64/bin/turbo
Daemon status: Running
Package manager: pnpm
Platform:
Architecture: x86_64
Operating system: linux
WSL: false
Available memory (MB): 3018
Available CPU cores: 2
Environment:
CI: None
Terminal (TERM): xterm-256color
Terminal program (TERM_PROGRAM): unknown
Terminal program version (TERM_PROGRAM_VERSION): unknown
Shell (SHELL): /bin/bash
stdin: false
Expected behavior
turbo run
should work.
Actual behavior
turbo run
throws an error:
➜ workspace git:(master) ✗ COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 pnpm exec turbo run build
turbo 2.3.4-canary.2
invalid_package_manager_field
× could not parse the packageManager field in package.json, expected to match regular expression (?P<manager>bun|npm|pnpm|yarn)@(?P<version>\d+\.\d+\.\d+(-.+)?)
╭─[/project/workspace/package.json:6:1]
6 │ },
7 │ "packageManager": "pnpm@https://registry.npmjs.org/@pkerschbaum/pnpm/-/pnpm-9.9.0-pkerschbaum-extensions-1.tgz",
· ──────────────────────────────────────────────┬──────────────────────────────────────────────
· ╰── invalid `packageManager` field
8 │ "dependencies": {
╰────
To Reproduce
-
Run:
corepack enable COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 pnpm install COREPACK_ENABLE_UNSAFE_CUSTOM_URLS=1 pnpm exec turbo run build
Additional context
-
Regex for
packageManager
seems to be this:lazy_regex!(r"(?P<manager>bun|npm|pnpm|yarn)@(?P<version>\d+\.\d+\.\d+(-.+)?)"); -
corepack
supports custom URLs nowadays: https://github.com/nodejs/corepack?tab=readme-ov-file#when-authoring-packages
And using them might be needed by some projects, e.g. we at @hokify want to switch from official pnpm to a forked one, for that we need to set a custom URL.
BTW we are very happy users of turborepo, great work!!
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerskind: bugSomething isn't workingSomething isn't working