Skip to content
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

[Bug] yarn workspaces foreach only running in a single directory, on node 15 #2475

Closed
1 task done
c-harding opened this issue Feb 13, 2021 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@c-harding
Copy link

  • I'd be willing to implement a fix

Describe the bug

yarn workspaces foreach run is only running in a single workspace, rather than in every workspace, when run with node 15.8.0. On Node 12 and Node 14, this works correctly.

To Reproduce

Install node 15.8.0 (e.g. with docker, by running docker run -i mhart/alpine-node:15.8.0), and run the following commands.

mkdir mwe; cd mwe
echo '{ "private": true, "workspaces": [ "w1", "w2" ] }' > package.json
yarn set version berry
yarn plugin import workspace-tools
mkdir w1 w2
echo '{ "name": "@mwe/w1", "scripts": { "test": "echo passed w1" } }' > w1/package.json
echo '{ "name": "@mwe/w2", "scripts": { "test": "echo passed w2" } }' > w2/package.json
yarn
yarn workspaces foreach run test

This only logs passed w1, compared to passed w1 passed w2 on Node 14 and older versions.

I was not able to reproduce this in Sherlock, because (as far as I can see) it does not let you choose the version of Node.

Screenshot

Note that, for whatever reason, this Docker image does not have any characters at the start of the prompt. In these screenshots, all but the last line is pasted together, and then the final line is pasted after everything has run through.

image

Environment if relevant (please complete the following information):

@c-harding c-harding added the bug Something isn't working label Feb 13, 2021
@merceyz
Copy link
Member

merceyz commented Feb 13, 2021

Duplicate of #2214
Duplicate of #2074
Duplicate of #2396
Fixed in #2255

@merceyz merceyz closed this as completed Feb 13, 2021
c-harding added a commit to c-harding/obidos that referenced this issue Feb 13, 2021
c-harding added a commit to c-harding/obidos that referenced this issue Feb 13, 2021
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

2 participants