)]}'
{
  "commit": "a9032d2c241d3e5ff104e1d66f56148107b33af1",
  "tree": "c00d8066caaaa09fc0ea80f2870eafaf404c1502",
  "parents": [
    "9facc3e3341f156377c61afbaa1dfb79a3843b78"
  ],
  "author": {
    "name": "Nikolaus Wittenstein",
    "email": "nikolaus.wittenstein@gmail.com",
    "time": "Mon Nov 13 05:22:46 2023 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 13 13:22:46 2023 +0000"
  },
  "message": "feat(gazelle): use relative paths for resolved imports (#1554)\n\nModify the Gazelle plugin so that when it adds a `dep` because of a\n`resolve` directive it makes it a relative import if possible.\n\nThe first commit adds a test for the existing behavior, where inside of\n`//package2` the dependency `//package2:resolved_package` is added. The\nsecond commit updates the test and the behavior so inside of\n`//package2` we add `: resolved_package` instead.\n\n---------\n\nCo-authored-by: Ignas Anikevicius \u003c240938+aignas@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dc3b079d9da72e01353f2ef09bc30b290a846d9b",
      "old_mode": 33188,
      "old_path": "CHANGELOG.md",
      "new_id": "a3ea0681d545380de00c7eca5dbd86dcf1d6409f",
      "new_mode": 33188,
      "new_path": "CHANGELOG.md"
    },
    {
      "type": "modify",
      "old_id": "87eed76ec38fe09d273eed794eef0fb7bab5dd89",
      "old_mode": 33188,
      "old_path": "gazelle/python/resolve.go",
      "new_id": "1ddd63d3c2f0d93ee5e34bd0434feeeec2a07b30",
      "new_mode": 33188,
      "new_path": "gazelle/python/resolve.go"
    },
    {
      "type": "modify",
      "old_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "old_mode": 33188,
      "old_path": "gazelle/python/testdata/relative_imports/BUILD.in",
      "new_id": "c04b5e5434bf386cc830dc80ce4535bbeed50d74",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/relative_imports/BUILD.in"
    },
    {
      "type": "modify",
      "old_id": "2c0862748be72ad12808bd1d85e9a27ce9ec5b11",
      "old_mode": 33188,
      "old_path": "gazelle/python/testdata/relative_imports/BUILD.out",
      "new_id": "bf9524480a542c565f9b018a11f943958d901e5d",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/relative_imports/BUILD.out"
    },
    {
      "type": "modify",
      "old_id": "cf61691e544d49b8557797ff60f61cdd11811426",
      "old_mode": 33188,
      "old_path": "gazelle/python/testdata/relative_imports/package2/BUILD.out",
      "new_id": "3e03e75f9b3107549e573d2c486c4de0f229a5ee",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/relative_imports/package2/BUILD.out"
    },
    {
      "type": "modify",
      "old_id": "74978a08d990ddd06b553675213695b75c59186e",
      "old_mode": 33188,
      "old_path": "gazelle/python/testdata/relative_imports/package2/module3.py",
      "new_id": "478dea9aa6ad46ca88c1501a5971da597765c342",
      "new_mode": 33188,
      "new_path": "gazelle/python/testdata/relative_imports/package2/module3.py"
    }
  ]
}
