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

Auto install after yarn.lock changed via yarn-deduplicate util it is stable #186

Open
JounQin opened this issue Aug 31, 2022 · 4 comments
Open

Comments

@JounQin
Copy link

JounQin commented Aug 31, 2022

As title.

@glensc
Copy link

glensc commented Sep 22, 2022

and what does the title mean? make example to explain it better.

@JounQin
Copy link
Author

JounQin commented Sep 22, 2022

@glensc

I'm sorry for the confusion, it's a feature request.

I'm using prepare script in package.json with yarn-deduplicate --strategy fewer, and the result could sometimes be unstable, and I have to run yarn install several times to get a stable yarn.lock file.

@scinos
Copy link
Owner

scinos commented Sep 24, 2022

the result could sometimes be unstable

What do you mean by "unstable"?

I have to run yarn install several times

That sounds like a bug. It is expected you have to run yarn install once after yarn-deduplicate to prune orphan packages (can't be done safely with an external tool, see this issue). I'll make it explicit in the docs.

However, if you need to run yarn install more than once, that's very unexpected. Could you provide more details?

@JounQin
Copy link
Author

JounQin commented Sep 24, 2022

I think that's because I'm using fewer strategy.
I'm on a phone, so I can't explain in details.
For short, different dependencies a maybe result different dependencies b, with first run a(or b) get stable versions, but the another one could be deduplicated again, so a second run is needed.

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

No branches or pull requests

3 participants