)]}'
{
  "commit": "966221b7818e14cc5b19c239891b4566df6932b8",
  "tree": "c6617ca356ffffeec572a9441c1a6b74b64214aa",
  "parents": [
    "1c5941a1927fe885014a6a1ee20e3c7116c78dc0"
  ],
  "author": {
    "name": "Ian (Hee) Cha",
    "email": "heec@google.com",
    "time": "Mon Nov 09 20:44:50 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 09 20:44:50 2026 +0000"
  },
  "message": "[8.9.0] Record the repositories a repository rule refers to by Label (https:/… (#32473)\n\n…/github.com/bazelbuild/bazel/pull/31543)\n\n`RepoRecordedInput.Repository` is a new kind of recorded input,\n`REPO:\u003ccanonical repo name\u003e`, with a constant value, whose up-to-date\ncheck requests the repository\u0027s `RepositoryDirectoryValue` and fails if\nthe repository failed to fetch. `StarlarkRepositoryContext` records it\nwhenever `getPathFromLabel` resolves a Label of another repository\n(neither the main repository nor the one being fetched), e.g. for\n`repository_ctx.symlink(Label(\"@b//:tree\"), ...)` or\n`repository_ctx.path(Label(...))`. Module extensions don\u0027t record it. An\nolder Bazel treats the new line as a parse failure and refetches the\nrepository once; a newer Bazel treats an old marker as before until the\nrepository\u0027s next fetch, so no marker version bump is needed.\n\nWithin a server, a repository rule that resolves a Label of another\nrepository depends on it through Skyframe. After a restart, only the\nmarker file decides whether the repository is up to date, and since\n`--incompatible_no_implicit_watch_label` dropped the implicit `FILE`\nrecord of the label\u0027s path, nothing in it refers to the other\nrepository. Its packages could thus be loaded before the other\nrepository was fetched again, so a `glob` through a symlink into it saw\nthe other repository\u0027s outdated contents (the non-Skyframe globber reads\nthe file system directly and the `GLOBS` dependency requested afterwards\ndoesn\u0027t reconcile the package), or a file read through the symlink was\nreplaced by the concurrent refetch. The latter is the race in #24694;\nthe former is\nhttps://github.com/bazelbuild/bazel/pull/31452#issuecomment-5970947098,\nwhere the remote repository contents cache turns \"outdated\" into \"empty\"\nsince a lazily cached repository has no native directory before it is\ninjected.\n\nFixes #24694\n\nWork towards #31456\n\nNo\n\nRELNOTES: None\n\nCloses #31543.\n\nPiperOrigin-RevId: 1015646323\nChange-Id: I0e33d81411de8dc351cec3a0455d979cd31e7905\n\n\u003c!--\nThank you for contributing to Bazel!\nPlease read the contribution guidelines: https://bazel.build/contribute\nand guidelines for AI-assisted contributions:\nhttps://bazel.build/contribute/ai-assisted-contributions\n--\u003e\n\n### Description\n\u003c!--\nPlease provide a brief summary of the changes in this PR.\n--\u003e\n\n### Motivation\n\u003c!--\nWhy is this change important? Does it fix a specific bug or add a new\nfeature?\nIf this PR fixes an existing issue, please link it here (e.g. \"Fixes\n#1234\").\n--\u003e\n\n### Build API Changes\n\u003c!--\nDoes this PR affect the Build API? (e.g. Starlark API, providers,\ncommand-line flags, native rules)\nIf yes, please answer the following:\n1. Has this been discussed in a design doc or issue? (Please link it)\n2. Is the change backward compatible?\n3. If it\u0027s a breaking change, what is the migration plan?\n--\u003e\n\nNo\n\n### Checklist\n\n- [ ] I have added tests for the new use cases (if any).\n- [ ] I have updated the documentation (if applicable).\n\n### Release Notes\n\n\u003c!--\nIf this is a new feature, please add \u0027RELNOTES[NEW]: \u003cdescription\u003e\u0027\nhere.\nIf this is a breaking change, please add \u0027RELNOTES[INC]: \u003creason\u003e\u0027 here.\nIf this change should be mentioned in release notes, please add\n\u0027RELNOTES: \u003creason\u003e\u0027 here.\n--\u003e\n\nRELNOTES: None\n\nCommit\nhttps://github.com/bazelbuild/bazel/commit/8fed32935092af02258281d8d954ecb7e29cc80f\n\n---------\n\nCo-authored-by: Fabian Meumertzheim \u003cfabian@meumertzhe.im\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e122d6a93dd7db3be184753a896030b6a014d7b9",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java",
      "new_id": "757832388f32ff0c51d3214b6e25372084ab01c0",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java"
    },
    {
      "type": "modify",
      "old_id": "a556246ce0da2f286e0e785c3c1b5b686f86da41",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java",
      "new_id": "3111e491cc0b19d3a8af82c071b00365e199a440",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java"
    },
    {
      "type": "modify",
      "old_id": "0ed09f471eaf88007c9fa7f1ab2144b279a5de52",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/BUILD",
      "new_id": "a0f514bb5cdf41e7ca334dc759a3053b1728b82c",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/BUILD"
    },
    {
      "type": "modify",
      "old_id": "b3532d7ff919b9b351678826f22a29ec7152a193",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInput.java",
      "new_id": "d84bc8b77eadf166d46ff72e0a445eed83a838de",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInput.java"
    },
    {
      "type": "modify",
      "old_id": "ea928c53d6115f8d38bb83d9a744b8f46776c191",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInputTest.java",
      "new_id": "39ddaecfea1dd27df8479634f9803110f44e8fd9",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInputTest.java"
    },
    {
      "type": "modify",
      "old_id": "9aef1ec859e7c6dbfee51f5d2cf8cfd45de262b8",
      "old_mode": 33188,
      "old_path": "src/test/py/bazel/bzlmod/bazel_module_test.py",
      "new_id": "fd3cdb6bc036bf436aea59c5f5c11c07832d3c3f",
      "new_mode": 33188,
      "new_path": "src/test/py/bazel/bzlmod/bazel_module_test.py"
    }
  ]
}
