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

Infinite recursion using --recursive option #4312

Closed
jimmythomson opened this issue Feb 9, 2022 · 1 comment
Closed

Infinite recursion using --recursive option #4312

jimmythomson opened this issue Feb 9, 2022 · 1 comment
Milestone

Comments

@jimmythomson
Copy link

pnpm version:

7.0.0-alpha.0

Code to reproduce the issue:

I'll flesh this out when I get time, but for now....

In my top level package.json (in my monorepo) I have:
"build": "pnpm build --recursive"

Expected behavior:

It should run the build script in every package of the monorepo.

Actual behavior:

When I run this, an infinite recursion issue occurs:

> @ build /home/james/code/ge/mach/api/application
> pnpm run build --recursive

> @ build /home/james/code/ge/mach/api/application
> pnpm run build --recursive "--recursive"

> @ build /home/james/code/ge/mach/api/application
> pnpm run build --recursive "--recursive" "--recursive"

> @ build /home/james/code/ge/mach/api/application
> pnpm run build --recursive "--recursive" "--recursive" "--recursive"

> @ build /home/james/code/ge/mach/api/application
> pnpm run build --recursive "--recursive" "--recursive" "--recursive" "--recursive"

....and so on....

This problem does not occur in 6.30.0

@zkochan zkochan added this to the v7.0 milestone Feb 9, 2022
@zkochan
Copy link
Member

zkochan commented Mar 31, 2022

Fixed by #2769

@zkochan zkochan closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants