)]}'
{
  "commit": "4f7a28643ef166987ccd65f1df0c4240bb03f165",
  "tree": "09361f00835ee981547308902e14a3e49444bead",
  "parents": [
    "61bf4c961c6de9d9f9ee324b3fc064cfa9feb85c"
  ],
  "author": {
    "name": "Juan Ortega",
    "email": "92177112+Wito-1@users.noreply.github.com",
    "time": "Tue Dec 01 22:27:34 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Dec 01 22:27:34 2026 +0000"
  },
  "message": "Don\u0027t count an empty start path as a directory in relativize() (#4503)\n\n`_path_parts(\"\")` returns `[\"\"]`, because `\"\".split(\"/\")` is `[\"\"]`. So\n`relativize(path, \"\")` counts the empty start as one directory and\nreturns `../path` instead of `path`.\n\n`_compute_rpaths` passes the dirname of the output\u0027s `short_path` as the\nstart. For a shared library in the root package that dirname is `\"\"`, so\nthe runfiles RPATH it computes points one level above the runfiles tree,\nand the binary can\u0027t find its `_solib_*` libraries through it.\n\nThis drops empty components along with `.` and adds unit tests for\n`relativize()`. Without the fix the new test fails with `Expected\n\"_solib_k8\", but got \"../_solib_k8\"`.\n\nAn end-to-end reproduction is in [this\ncomment](https://github.com/bazelbuild/rules_rust/pull/4503#issuecomment-7324953997):\na root-package binary that links a shared library built in another\nconfiguration fails to load it when run from its runfiles tree with\nsymlinks resolved.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "476651a1d78a629e0f4e59608c60551afe52ff48",
      "old_mode": 33188,
      "old_path": "rust/private/utils.bzl",
      "new_id": "c007da45ce5349be725d02163571aad850d64477",
      "new_mode": 33188,
      "new_path": "rust/private/utils.bzl"
    },
    {
      "type": "modify",
      "old_id": "7e995a1fcc46918b7548b4ca2891b0e459f8e688",
      "old_mode": 33188,
      "old_path": "test/unit/utils/utils_test.bzl",
      "new_id": "72c98e1c9646d072af3e1deabc6fc1112aba9418",
      "new_mode": 33188,
      "new_path": "test/unit/utils/utils_test.bzl"
    }
  ]
}
