Skip to content

[Bug?]: yarn workspaces foreach --recursive upgrade-interactive #6775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
ssbarnea opened this issue Apr 25, 2025 · 0 comments
Open
1 task

[Bug?]: yarn workspaces foreach --recursive upgrade-interactive #6775

ssbarnea opened this issue Apr 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ssbarnea
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

Is funny to see that yarn workspaces foreach --recursive upgrade-interactive complains about not having a TTY when run inside the terminal. I can probably guess why this happens but still there is no workaround I am aware of.

To reproduce

❯ yarn workspaces foreach --recursive upgrade-interactive
[ansible]: Process started
[ansible]: Internal Error: Interactive commands can only be used inside a TTY environment
[ansible]:     at ow (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:589:886)
[ansible]:     at vw.execute (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:593:91)
[ansible]:     at vw.validateAndExecute (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:94:798)
[ansible]:     at vw.validateAndExecute (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:413:16257)
[ansible]:     at /Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:98:3277
[ansible]:     at kne (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:98:988)
[ansible]:     at t.run (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:98:3269)
[ansible]:     at Object.run (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:98:3144)
[ansible]:     at g (/Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:758:1745)
[ansible]:     at /Users/ssbarnea/code/a/vscode-ansible/.yarn/releases/yarn-4.9.1.cjs:758:2699
[ansible]: Process exited (exit code 1), completed in 0s 12ms
The command failed in workspace ansible@workspace:. with exit code 1
Failed with errors in 0s 16ms

Environment

System:
    OS: macOS 15.4.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 20.18.0 - /private/var/folders/32/1xrphgzd4xv777syxjtkpdw80000gn/T/xfs-78aa191a/node
    Yarn: 4.9.1 - /private/var/folders/32/1xrphgzd4xv777syxjtkpdw80000gn/T/xfs-78aa191a/yarn
    npm: 10.8.2 - ~/.config/mise/installs/node/20.18.0/bin/npm

Additional context

We need a way to perform an interactive upgrade for workspaces.

@ssbarnea ssbarnea added the bug Something isn't working label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant