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

fix: circular dependencies result in endless loop + out of memory crash #54

Open
petermetz opened this issue Aug 11, 2021 · 3 comments
Open

Comments

@petermetz
Copy link

I tried installing a plugin that has es6-iterator as a dependency which has es5-ext as a dependency which has es6-iterator and so there's a cycle in the dependency graph that I think live-plugin-manager needs a circuit breaker for.
It might be that some additional things are needed to make sure it is handled correctly, if anyone has any information about how npm/yarn handle these cases (on top of having the circuit breaker) that would be great to know!

@davideicardi
Copy link
Owner

Circular requires should be supported, but not sure about circular dependencies.
From high level point of view it sounds strange... but probably in someway we can support it.

AS a workaround you can probably install es6-iterator and es5-ext manually and then mark them as a static dependencies? (see staticDependencies options)

@petermetz
Copy link
Author

@davideicardi

Circular requires should be supported, but not sure about circular dependencies.

Fair point IMO. The only reason why I'd still consider dealing with it due to wanting to be consistent with the other package managers (both npm and yarn are able to install these dependencies). Of course I also understand 100% that if being consistent in all fronts like that is not part of the vision of the project.

AS a workaround you can probably install es6-iterator and es5-ext manually and then mark them as a static dependencies? (see staticDependencies options)

I had to go another route so I'm unable to test it anymore unfortunately. (I'm using npm's --prefix parameter to install plugins "somewhere else on the file-system")
Based on the above I'm also okay with just closing this of course, if no one else had this issue and I've moved on then I don't want to take up your time!

@davideicardi
Copy link
Owner

For me we can leave the issue open for the future, so I can monitor it.

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