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

Don't change file if not necessary #422

Closed
cdtut opened this issue Mar 10, 2024 · 2 comments · Fixed by #446
Closed

Don't change file if not necessary #422

cdtut opened this issue Mar 10, 2024 · 2 comments · Fixed by #446

Comments

@cdtut
Copy link

cdtut commented Mar 10, 2024

corepack install --global always writes to file. Don't touch file if not necessary including if there is not change to a version. And output should be different and say yarn@version already installed not Installing yarn@version....

@aduh95
Copy link
Contributor

aduh95 commented Mar 10, 2024

Can you clarify what you mean by that? Any chance you could include a list of commands that would show the problem?

@cdtut
Copy link
Author

cdtut commented Mar 11, 2024

corepack install --global yarn adds yarn to ~/.cache/node/corepack/lastKnownGood.json. Do it again and same file is written even if no change.

And output still says Installing but was already installed.

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 a pull request may close this issue.

2 participants