)]}'
{
  "commit": "4d3cdbb014d4b2ea9e489c685d8ddf65861d2e56",
  "tree": "e7c525892516102d5a9e86eba1e59eb434495351",
  "parents": [
    "ea5a6c3291fa29b5634d5aa6b695ec300c3ff31b"
  ],
  "author": {
    "name": "Krasimir Georgiev",
    "email": "krasimir@google.com",
    "time": "Fri Nov 13 12:58:37 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Nov 13 12:58:37 2026 +0000"
  },
  "message": "Escape string literals in crate_universe Tera repository templates (#4416)\n\nNo functional changes intended.\n\n`TemplateEngine::new` in `crate_universe` initializes\n`tera::Tera::default()`, which does not enable auto-escaping for `.j2`\ntemplate files.\nWhile `deps_map.j2` and `aliases_map.j2` already pipe interpolated\nvalues through Tera\u0027s `| addslashes` filter when rendering Starlark\nstring literals, `repo_git.j2`, `repo_http.j2`, and `local_crate_mirror`\nin `module_bzl.j2` interpolated string attributes (such as\n`strip_prefix`, `remote`, `commitish`, `patch_args`, `urls`, and `path`)\ndirectly inside `\"...\"` literals. If any of those fields contain double\nquotes (`\"`) or backslashes (`\\`), the generated `crates.bzl` contains\nunescaped Starlark string literals.\nThis change applies `| addslashes` consistently across the\nstring-literal interpolations in `repo_git.j2`, `repo_http.j2`, and\n`module_bzl.j2`, and adds a unit test in\n`crate_universe/src/rendering.rs`.\n\nAssisted-by: Gemini",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "10b9752d3244b4dff38380b29cfe25f25a51210b",
      "old_mode": 33188,
      "old_path": "crate_universe/src/rendering.rs",
      "new_id": "d230f5ddc080bf852e18fc9acb01ea9acce6c014",
      "new_mode": 33188,
      "new_path": "crate_universe/src/rendering.rs"
    },
    {
      "type": "modify",
      "old_id": "b3169e76fdf08554fa6a43dee1b785d286fdc30c",
      "old_mode": 33188,
      "old_path": "crate_universe/src/rendering/templates/module_bzl.j2",
      "new_id": "bd28dfbd3d880aceae38ce1c6a34e8a41c68a415",
      "new_mode": 33188,
      "new_path": "crate_universe/src/rendering/templates/module_bzl.j2"
    },
    {
      "type": "modify",
      "old_id": "2bbf67662e94c05573842fd883c3d190135dc8bf",
      "old_mode": 33188,
      "old_path": "crate_universe/src/rendering/templates/partials/module/repo_git.j2",
      "new_id": "379e0932ddf4e9d2076245779e620b46e29baf9c",
      "new_mode": 33188,
      "new_path": "crate_universe/src/rendering/templates/partials/module/repo_git.j2"
    },
    {
      "type": "modify",
      "old_id": "8e3f7dc0ce6a19699089c7ca4062ac078931575e",
      "old_mode": 33188,
      "old_path": "crate_universe/src/rendering/templates/partials/module/repo_http.j2",
      "new_id": "22af936a25f773cd24b46b3b1f3757784d7f8ccf",
      "new_mode": 33188,
      "new_path": "crate_universe/src/rendering/templates/partials/module/repo_http.j2"
    }
  ]
}
