-
Notifications
You must be signed in to change notification settings - Fork 351
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
Change yarn --frozen-lockfile to --immutable #611
Conversation
I was interested to find your PR which you submitted last year. You are right that some changes need to be made for Yarn 2. As you wrote, Yarn 1 (classic) users would need to change how they use the action, so your suggestion to change the default yarn command from The ideal situation would be if cypress-io/github-action (GHA) could automatically recognize whether it was dealing with a yarn 1 (classic) or yarn berry (v2 and later) project and then use the appropriate command. I don't know if that can be done reliably or not. Regarding the details of your suggestion, I'm not sure that it would be necessary to specify According to the Yarn CLI documentation: "If the Since the current option If you want to test your change you would need to carry out some extra steps: first rebase on the current master branch, then execute
and commit the changes to GitHub. |
Your PR branch is now 172 commits behind the master branch, so it is quite out of date. Are you still interested in this? If yes, and you don't have time at the moment, you could change the status draft. If you don't want to pursue the topic any more, then you could close the PR. |
Yes, sorry, I missed your comment from three weeks ago. I can update sometime next week. I knew that |
It's good to hear you are still active! This PR isn't assigned to anybody in the Cypress team so far, so we haven't had any comment back from them yet and it would be good to hear their opinion before you put any significant effort into changes. |
Here are some additional comments and suggestions: ConsiderationsIt would be a breaking change to replace the default installation command If the action's default installation command remains as
If the action's default installation command is changed to
SuggestionSo, my suggestion is to delay this PR until either:
It would be great to hear from other Yarn users if this makes sense. |
Does anybody have any further feedback on this PR? I suggest to close it, since at this time I cannot see that Yarn Classic can be abandoned, and I believe there should continue to be backwards compatibility with Yarn Classic. The contents of the PR itself are quite simple (one line code change in the action), so it would be easy to re-activate it if necessary. The usage of install-command: yarn install when using Yarn Modern (and only to avoid a deprecation warning, otherwise it will currently work with no extra measures needed). The additional one line of workflow code does not seem to be too burdensome for users to add and to maintain. |
Yes at this point we have no plans to deprecate Yarn 1. I am going to close this PR for the time being and we can revisit when/if we look to update to support Yarn Modern. |
Related: #591
Yarn 2 has been out for about two years now, which deprecated this flag. The action should use the updated flag by default, with users of Yarn 1 using
install-command
to use the old flag