Skip to content

Commit d9baf3e

Browse files
authored
Add uv.lock conflict resolution instructions (#64848)
1 parent da38bd6 commit d9baf3e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ UV workspace monorepo. Key paths:
6363
- `ci/prek/` — prek (pre-commit) hook scripts; shared utilities in `common_prek_utils.py`
6464
- `tests/` — pytest tests for the scripts; run with `uv run --project scripts pytest scripts/tests/`
6565

66+
The `uv.lock` file is generated by `uv lock`, `uv sync` and is committed to the repo - it contains snapshot of
67+
versions of all dependencies used for development of Airflow. If at any point in time you have a conflict
68+
with `uv.lock`, simply delete it and run `uv lock` to regenerate it.
69+
6670

6771
## Architecture Boundaries
6872

contributing-docs/10_working_with_git.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ we will be adding the remote as "apache" so you can refer to it easily
181181
push your changes to your repository. That should trigger the build in our CI if you have a
182182
Pull Request (PR) opened already
183183

184-
8. While rebasing you might have conflicts. Read carefully what git tells you when it prints information
184+
8. When you have conflicts with ``uv.lock`` when rebasing, simply delete the ``uv.lock`` file and run
185+
``uv lock`` to regenerate it. This is the recommended way to solve conflicts in ``uv.lock`` file.
186+
187+
9. While rebasing you might have conflicts. Read carefully what git tells you when it prints information
185188
about the conflicts. You need to solve the conflicts manually. This is sometimes the most difficult
186189
part and requires deliberately correcting your code and looking at what has changed since you developed your
187190
changes
@@ -195,7 +198,7 @@ we will be adding the remote as "apache" so you can refer to it easily
195198
you have a very intuitive and helpful merge tool. For more information, see
196199
`Resolve conflicts <https://www.jetbrains.com/help/idea/resolving-conflicts.html>`_.
197200

198-
9. After you've solved your conflict run
201+
10. After you've solved your conflict run
199202

200203
``git rebase --continue``
201204

0 commit comments

Comments
 (0)