Skip to content

🔧 [dependabot] Reduce merge conflicts using the lockfile-only strategy#746

Merged
cjolowicz merged 1 commit intomainfrom
ci/dependabot-lockfile-only
Dec 27, 2021
Merged

🔧 [dependabot] Reduce merge conflicts using the lockfile-only strategy#746
cjolowicz merged 1 commit intomainfrom
ci/dependabot-lockfile-only

Conversation

@cjolowicz
Copy link
Copy Markdown
Owner

@cjolowicz cjolowicz commented Dec 27, 2021

Dependabot updates version constraints in pyproject.toml even when the version constraint already covers the new version, leading to frequent merge conflicts because the global content hash in poetry.lock changes. See dependabot/dependabot-core#4435 for details.

As of #744, this project template no longer uses upper version bounds for its dependencies. As a result, we are now able to use the "lockfile-only" versioning strategy to upgrade dependencies, including major version bumps. This strategy prevents Dependabot from modifying pyproject.toml, putting an end to the frequent merge conflicts.

Dependabot updates version constraints in pyproject.toml even when the version
constraint already covers the new version, leading to frequent merge conflicts
because the global content hash in poetry.lock changes.

As of #744, this project
template no longer uses upper version bounds for its dependencies. As a result,
we are now able to use the "lockfile-only" versioning strategy to upgrade
dependencies, including major version bumps. This strategy prevents Dependabot
from modifying pyproject.toml, putting an end to the frequent merge conflicts.
@cjolowicz cjolowicz added the ci Continuous Integration label Dec 27, 2021
@cjolowicz cjolowicz merged commit 3082062 into main Dec 27, 2021
@cjolowicz cjolowicz deleted the ci/dependabot-lockfile-only branch December 27, 2021 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant