)]}'
{
  "commit": "a76c56a738db4b41c05342bb16ffa30b5fde230d",
  "tree": "52eda47e4b5301926fb2471457b8987018363404",
  "parents": [
    "d5390d999d43e625ccdb0dabcd74cf29df3a96b5"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Thu Nov 19 03:17:33 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Nov 19 03:18:41 2026 -0800"
  },
  "message": "Change-prune repo definitions (#32793)\n\n### Description\n\nCompare `RepoRule`s by identity so that `RepoDefinitionValue` no longer has to be a `NotComparableSkyValue`.\n\nA repo rule\u0027s implementation function may use the repo mapping of the .bzl file that defines it, which doesn\u0027t affect the function\u0027s equality since `StarlarkFunction`s from two evaluations of the same .bzl file compare equal. Identity is sound since evaluating the .bzl file again, for example after its repo mapping changed, yields a new `RepoRule` instance.\n\n### Motivation\n\nPreviously, any change to the root module or the dependency graph, such as editing a module extension tag or a repo rule\u0027s attributes in `MODULE.bazel`, reran `RepositoryFetchFunction` for every repo and thus refetched every local repo. Now only local repos whose definitions changed are refetched. Changes to the main repo mapping, such as adding a `use_repo`, still refetch local repos since fetching depends on the full main repo mapping.\n\n### Build API Changes\n\nNo\n\n### Release Notes\n\nRELNOTES: None\n\nCloses #32793\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/bazel/pull/32793 from fmeum:repo-rule-identity b83945a844353d5c5278b44cc3fe70d6c33c61f4\nPiperOrigin-RevId: 1025433397\nChange-Id: Ief3052f5cf9c7ee2e64effed53a743096c26275a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b7aefad3ce8750104377e4dec063d158a6ab68ae",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/RepoDefinitionValue.java",
      "new_id": "b589e7b0410bf45df65c40288c301c78fb1b069c",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/RepoDefinitionValue.java"
    },
    {
      "type": "modify",
      "old_id": "0a5234191247bc8bf1d046d45e3fbe9707ec2a8d",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/RepoRule.java",
      "new_id": "7aaa8f2a41c45ad6e61e7e9e1851e31c4b30803a",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/RepoRule.java"
    },
    {
      "type": "modify",
      "old_id": "9f12efbf5084382fb2cbcb7b3c7d4f23fb28b403",
      "old_mode": 33261,
      "old_path": "src/test/shell/bazel/starlark_repository_test.sh",
      "new_id": "ad3d9fe885ec54792f22d7978bc705e62164fe85",
      "new_mode": 33261,
      "new_path": "src/test/shell/bazel/starlark_repository_test.sh"
    }
  ]
}
