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 workspace foreach do not exit when sub-process fails #4

Merged
merged 3 commits into from
Apr 19, 2022

Conversation

akphi
Copy link
Owner

@akphi akphi commented Apr 18, 2022

This is a reproduction of issue mentioned in yarnpkg/berry#2486

Each workspace has a script called doSomething. pkg1 will exit with code 1 since the command error is not known.

At the root directory, if we run the following command, we got some unexpected result:

yarn workspaces foreach run doSomething                                          # no error
yarn workspaces foreach --all run doSomething                                    # no error
yarn workspaces foreach --parallel run doSomething                               # no error
yarn workspaces foreach --all --parallel --topological-dev run doSomething       # error

@akphi akphi merged commit efc6fe7 into main Apr 19, 2022
@akphi akphi deleted the yarn-workspace-exit branch April 19, 2022 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant