Skip to content

Prevents a workspace from suggesting itself #421

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

Merged
merged 2 commits into from
Aug 29, 2019
Merged

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Aug 29, 2019

What's the problem this PR addresses?

Workspaces should not be able to add themselves into dependencies of themselves, which may happen if for example you run yarn add test from a package named test itself (which may happen if you ran yarn init inside a directory named test).

How did you fix it?

The suggest engine will not offer workspaces as suggestion if the request ident is the same as the the context workspace ident.

I've also had to fix a problem in yarn version check where the decided / undecided sets were incorrectly computed.

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