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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install modifies yarn.lock #10436

Closed
O4epegb opened this issue Jul 28, 2023 · 3 comments
Closed

yarn install modifies yarn.lock #10436

O4epegb opened this issue Jul 28, 2023 · 3 comments
Labels
馃悰 bug Something isn't working 猬嗭笍 dependencies Pull requests that update a dependency file

Comments

@O4epegb
Copy link
Contributor

O4epegb commented Jul 28, 2023

Issue Summary

I'm not sure if maybe I am doing something wrong, but just simple yarn install on main branch produces changes for yarn.lock. It's just a little bit annoying to clean up the changes after every install 馃槃

Does anyone else have this? Or it's my local problem?

yarn.lock | 1842 ++----------------------------------------------------------------------------------------------------------------------------
 1 file changed, 24 insertions(+), 1818 deletions(-)

Steps to Reproduce

  1. Do yarn install
  2. Check for changes in yarn.lock

Expected Results

yarn.lock is not modified

Technical details

yarn 3.4.1
node v18.8.0

@maige-app maige-app bot added 馃悰 bug Something isn't working 猬嗭笍 dependencies Pull requests that update a dependency file labels Jul 28, 2023
@O4epegb
Copy link
Contributor Author

O4epegb commented Jul 28, 2023

I also think it might be a good idea to use --immutable flag to bail out on CI if lock file is modified?

--immutable | Abort with an error exit code if the lockfile was to be modified

Docs here https://yarnpkg.com/cli/install#options

@hariombalhara
Copy link
Member

This is due to #10217

@O4epegb
Copy link
Contributor Author

O4epegb commented Jul 31, 2023

This is due to #10217

Oh, I see, thank you. Well, then I guess this issue can be closed, because it's not easily solvable by just running yarn

@O4epegb O4epegb closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working 猬嗭笍 dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants