)]}'
{
  "commit": "7f08f2f55365be566ab8a01660f43b82be0c1ae6",
  "tree": "32f933a97511e228658c3bf4181ab9b6e324ebf6",
  "parents": [
    "0b52e5d616576211ca4bf1163fe72a6705d2e58c"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "richardlev@gmail.com",
    "time": "Sun Oct 25 23:25:30 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Oct 25 23:25:30 2026 +0000"
  },
  "message": "fix(uv): read and write workspace uv.lock in lock() .run target (#4343)\n\nUnlike `uv pip compile`, `uv lock` has no output path flag and always\nreads and writes `uv.lock` in the project directory alongside\n`pyproject.toml`. Previously, running the `.run` target for a `uv.lock`\noutput executed `uv lock` directly in the runfiles directory without\nincluding the existing workspace lock file in runfiles or writing the\nupdated lock file back to `BUILD_WORKSPACE_DIRECTORY`. As a result,\ncommands like `bazel run //:lock.run -- --upgrade-package foo` ignored\nthe existing workspace `uv.lock` and wrote output only inside the\nrunfiles tree.\n\nInclude the existing lock file in the `.run` target\u0027s runfiles and\nupdate the wrapper scripts to resolve `uv.lock` against the workspace\noutput path. When `uv.lock` in runfiles is already a writable symlink to\nthe workspace output file, execute `uv` in place; otherwise, stage the\nrunfiles tree in a temporary directory and write the resulting lock file\nback to the workspace.\n\nFixes #4339",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "17fa931e27ffe43c333e7fe4f89e4f44be36a903",
      "new_mode": 33188,
      "new_path": "news/4339.fixed.md"
    },
    {
      "type": "modify",
      "old_id": "b0441512991aa9113e2faba19ced0bd2875aa945",
      "old_mode": 33188,
      "old_path": "python/uv/private/lock.bzl",
      "new_id": "a75c54dde21f27a1e979cbd0dae46c0f3b60a470",
      "new_mode": 33188,
      "new_path": "python/uv/private/lock.bzl"
    },
    {
      "type": "modify",
      "old_id": "826e775f08599e6cb967bff1e958e39fbd285426",
      "old_mode": 33261,
      "old_path": "python/uv/private/template/uv_lock.bat",
      "new_id": "8a7dcbefdbe9c807f1dbdc1d02e3c160eddd68e6",
      "new_mode": 33261,
      "new_path": "python/uv/private/template/uv_lock.bat"
    },
    {
      "type": "modify",
      "old_id": "10d37fd5fb8d2f69d4f99e78dc51c0f1f91fc353",
      "old_mode": 33261,
      "old_path": "python/uv/private/template/uv_lock.sh",
      "new_id": "a9543f203b2fde9831faf614a7938dd8234f272d",
      "new_mode": 33261,
      "new_path": "python/uv/private/template/uv_lock.sh"
    },
    {
      "type": "modify",
      "old_id": "8ac95ca9f1f93682ec61d861b9ac34ae40b90bff",
      "old_mode": 33188,
      "old_path": "tests/integration/uv_lock_test.py",
      "new_id": "73760cd062213c26898818e7bd8cb81d0277cb10",
      "new_mode": 33188,
      "new_path": "tests/integration/uv_lock_test.py"
    }
  ]
}
