)]}'
{
  "commit": "a57ba8da050c91b2ab52c146bcd1444a7cce416c",
  "tree": "7ef204a742de56ef3aa1cb2a49b19601dce827b8",
  "parents": [
    "d4504ce488330aa9c4bb61fece7d7b1c3846b27e"
  ],
  "author": {
    "name": "bazel.build machine account",
    "email": "ci.bazel@gmail.com",
    "time": "Tue Sep 15 17:03:09 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Sep 15 17:03:09 2026 +0000"
  },
  "message": "[9.3.0] Lock in the first observed value of a recorded input (#31091) (#31143)\n\n### Description\n`RepoRecordedInput.File.fileValueToMarkerValue` re-hashes the file from\ndisk whenever the cached `FileValue` has no fast digest, i.e., pretty\nmuch in all cases for Bazel. As a result, a repo rule or module\nextension that reads a file, modifies it (e.g. via `ctx.execute`) and\nthen reads it again observes two different digests for the same input.\nSince 41ccfefb88e, `recordInputWithValue` turned this into an\n`IllegalStateException` that crashed the fetch.\n\nInstead, keep the value observed first and emit a single warning per\ninput whose value changed during the evaluation. The first value no\nlonger matches the on-disk state after the fetch, so the repo or\nextension is re-evaluated exactly once more on the next invocation and\nis stable from then on if it leaves the file unchanged.\n\n### Motivation\nFixes #29114\n\n### Build API Changes\n\nNo\n\n### Checklist\n\n- [x] I have added tests for the new use cases (if any).\n- [ ] I have updated the documentation (if applicable).\n\n### Release Notes\n\nRELNOTES: None\n\nCloses #31091\n\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/bazel/pull/31091\nfrom fmeum:fix-29114-locked-in-recorded-inputs\nf2fc00e34169108e08573e226ede587a625fa56e\nPiperOrigin-RevId: 981856410\nChange-Id: I3643f71ba2e492bdc16d3a724f0cb9cb806972a0\n\nCommit\nhttps://github.com/bazelbuild/bazel/commit/c4fb3b215d9f6d54bc0d2d3977a82da9f109978c\n\nCo-authored-by: Fabian Meumertzheim \u003cfabian@meumertzhe.im\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e218b87cd01f9984a439dc045a8a7a52cbae9ef2",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java",
      "new_id": "9a8a7f7ed843bca9a605288456c17e27c68046c5",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java"
    },
    {
      "type": "modify",
      "old_id": "a8128e1a0d6b84875f9e832da033ff74133c2088",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInput.java",
      "new_id": "21ed9e06fe07548b454c661fe609b49ac5e75b9e",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/repository/RepoRecordedInput.java"
    },
    {
      "type": "modify",
      "old_id": "2e7f5903257def71b5eac472ab65ebeef774b0e4",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContextTest.java",
      "new_id": "3d0e535191ffbc3ca157df0223906a240f66da3b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContextTest.java"
    },
    {
      "type": "modify",
      "old_id": "5cc91fa791b27ea0cabbb89d86db544e3c8c711c",
      "old_mode": 33188,
      "old_path": "src/test/py/bazel/bzlmod/bazel_lockfile_test.py",
      "new_id": "3a602a5cea2765720f9e8243c0b65202575996d2",
      "new_mode": 33188,
      "new_path": "src/test/py/bazel/bzlmod/bazel_lockfile_test.py"
    }
  ]
}
