-
Notifications
You must be signed in to change notification settings - Fork 581
Dependabot PRs cause recurring package.json merge conflicts #382
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
Comments
It looks like there is no file called package-lock.json. I'm going to assume you mean pnpm-lock.yaml.(don't use npm and have disabled it.) First of all, if there are no conflicts (= the lock file and the hash value of package.json have not changed), GitHub will automatically merge to follow the main branch. Otherwise, if a conflict in main needs to be resolved, then the lock file and the package.json hash have changed, and some package change has occurred, which is beyond my control. P.S. |
Here’s a rough outline of the steps I usually take to resolve these conflicts:
This resolves the conflict for that particular update, but similar issues often arise again when Dependabot creates new PRs for different dependencies in Do these conflicts eventually go away by repeating the above steps each time, or is there a better way to avoid them? |
No. there is no way around this. |
Thanks for the clarification. I’ll continue applying the steps when conflicts occur. |
After merging Dependabot PRs that update
package.json
andpackage-lock.json
, open PRs often encounter merge conflicts inpackage.json
.These conflicts occur even when the changes seem unrelated, causing repeated manual conflict resolution and disrupting the workflow.
Any ideas or suggestions to reduce this friction?
#80, #161, #208, #272, #283, #294, #317, #324, #330, #351, #358, #376
The text was updated successfully, but these errors were encountered: