)]}'
{
  "commit": "03dadb0cede71c4ad2c5a4e67d910b531ee0bea4",
  "tree": "635bdf3417ecd3e30e81ecf4efe1bfaf04b16a26",
  "parents": [
    "d6a21d8f334fddf4e34e78eb3d6707a7b726d823"
  ],
  "author": {
    "name": "Tony Aiuto",
    "email": "tony.aiuto@datadoghq.com",
    "time": "Tue Apr 21 23:38:13 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Apr 21 23:38:13 2026 -0400"
  },
  "message": "Add package_variables support to pkg_files and pkg_filegroup prefix (#1052)\n\nCloses #781.\n\npkg_files and pkg_filegroup now accept a package_variables attribute, enabling\nmake-variable substitution in their prefix attribute. For example:\n\nmy_platform_vars(name \u003d \"platform_vars\", os \u003d \"linux\", arch \u003d \"x86_64\")\n\npkg_filegroup(\n    name \u003d \"platform_libs\",\n    srcs \u003d [\":my_libs\"],\n    prefix \u003d \"usr/lib/$(os)_$(arch)\",\n    package_variables \u003d \":platform_vars\",\n)\n\nPreviously the only workaround was select() on prefix, while package_file_name already supported variable substitution via package_variables. This closes the inconsistency: the same mechanism now works for destination paths in the mapping rules.\n\nThe implementation follows the same pattern as pkg_deb and pkg_tar, reusing substitute_package_variables() from //pkg/private:util.bzl.\n\n- Admittedly this was too small to use an agent, but it saved me time writing the tests.\n- I created a hints file for the next time.",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "327b0dcbb02076584701876051f13488c66dca36",
      "new_mode": 33188,
      "new_path": ".claude/settings.local.json"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "914d9c9e92d037a67b2264521d5ec8896f96393c",
      "new_mode": 33188,
      "new_path": "CLAUDE.md"
    },
    {
      "type": "modify",
      "old_id": "4f10cf46c3ae4fcb475f0a2f70f64d34731b13bb",
      "old_mode": 33261,
      "old_path": "docs/latest.md",
      "new_id": "ba68f1e52ac56b62b175c8747e2bcb8f70d2bd0f",
      "new_mode": 33261,
      "new_path": "docs/latest.md"
    },
    {
      "type": "modify",
      "old_id": "0e44158ab428aa1087bc7a0ad12fa2bb779c8855",
      "old_mode": 33188,
      "old_path": "pkg/mappings.bzl",
      "new_id": "beeb3923ad8f0631ad0f8de9d90c9ab5fe4666f7",
      "new_mode": 33188,
      "new_path": "pkg/mappings.bzl"
    },
    {
      "type": "modify",
      "old_id": "27a61cba8ee9480faae426a05ef53147849b7207",
      "old_mode": 33188,
      "old_path": "tests/mappings/mappings_test.bzl",
      "new_id": "f663c52681edc9190892596387c6eaeb3affc309",
      "new_mode": 33188,
      "new_path": "tests/mappings/mappings_test.bzl"
    }
  ]
}
