You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
Having globalDependencies in a pnpm project that is not a workspace causes a crash:
ERROR run failed: failed to collect global hash inputs: /Users/hvanrijswijk1/ws/test/pnpm-workspace.yaml: open /Users/hvanrijswijk1/ws/test/pnpm-workspace.yaml: no such file or directory
Turbo error: failed to collect global hash inputs: /Users/hvanrijswijk1/ws/test/pnpm-workspace.yaml: open /Users/hvanrijswijk1/ws/test/pnpm-workspace.yaml: no such file or directory
Workaround: create an empty pnpm-workspace.yaml file, though that does change the pnpm-lock.yaml structure, or move globalDependencies to each task
Expected Behavior
No crash, same behaviour as without globalDependencies
To Reproduce
Empty pnpm project, with 1 task that 'echo's something to the terminal
)
### Description
Fixes#4914, this is the pnpm implementation of #4240
Was caused as `pnpm` when calculating ignores touches the file system
and will error if `pnpm-workspace.yaml` isn't present. This also avoids
failing on the rare case of someone using turbo on a single project with
no external dependencies as pnpm won't create a lockfile in this case.
### Testing Instructions
Added integration test for a single project using pnpm with global
dependencies
---------
Co-authored-by: Chris Olszewski <Chris Olszewski>
What version of Turborepo are you using?
1.9.3
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
Having
globalDependencies
in a pnpm project that is not a workspace causes a crash:Workaround: create an empty
pnpm-workspace.yaml
file, though that does change thepnpm-lock.yaml
structure, or moveglobalDependencies
to each taskExpected Behavior
No crash, same behaviour as without
globalDependencies
To Reproduce
Empty pnpm project, with 1 task that 'echo's something to the terminal
$ turbo echo
Remove
globalDependencies
and observe no crashReproduction Repo
https://github.com/hugo-vrijswijk/turbo-globalDependencies-pnpm
The text was updated successfully, but these errors were encountered: