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

Yarn Berry: Fully update cache and include .pnp.cjs in PR #5964

Merged
merged 10 commits into from
Oct 25, 2022

Conversation

pavera
Copy link
Contributor

@pavera pavera commented Oct 24, 2022

Fixes #5946

Context

Previously we were using --mode=update-lockfile to limit the changes made by Dependabot to only the lockfile updates. This proved insufficient for users with yarn's zero install configured. This PR removes that flag and includes .pnp.cjs changes in the resulting PRs

Approach

We considered adding a conditional to only remove this flag if the repo had a .yarn/cache dir, but we found that this flag is also not supported in yarn v2 which would further complicate the conditional, and through testing found that the performance improvement of using the flag was pretty small (around 10s per dependency).

Due to the above we opted to remove our usage of the flag for all cases.

@pavera pavera requested a review from a team as a code owner October 24, 2022 15:29
@pavera pavera force-pushed the pavera/update-cache-if-zero-install branch from 39d0e2d to b92525d Compare October 24, 2022 15:29
@pavera pavera force-pushed the pavera/update-cache-if-zero-install branch from 2e7b838 to dc5d8d6 Compare October 24, 2022 20:28
@pavera pavera force-pushed the pavera/update-cache-if-zero-install branch from d88f9eb to 96560c1 Compare October 25, 2022 14:28
@pavera pavera merged commit ce91e1c into main Oct 25, 2022
@pavera pavera deleted the pavera/update-cache-if-zero-install branch October 25, 2022 15:10
@pavera pavera mentioned this pull request Oct 31, 2022
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.

Yarn v2/v3 zero-install not updating cache files
3 participants