We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f1ea5b + a68a9f8 commit 01674b9Copy full SHA for 01674b9
1 file changed
bin/git-resolve-poetry-lock.sh
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
4
5
+# This is a little helper you can use to resolve git merge conflicts in poetry.lock
6
+# with minimal changes vs the requested lib versions
7
+# Based on this article with a good description of best practices:
8
+# https://www.peterbe.com/plog/how-to-resolve-a-git-conflict-in-poetry.lock
9
10
+echo "Resolving poetry.lock merge conflicts, you'll need to run git commit yourself..."
11
12
+# Get poetry.lock to look like it does in master
13
+git checkout --theirs poetry.lock
14
+# Rewrite the lock file
15
+poetry lock --no-update
16
+git add poetry.lock
17
18
+# Update your poetry env to match the new merged lock file
19
+poetry install
0 commit comments