)]}'
{
  "commit": "401969d4367c42dcbb45d33a637eae87788d025e",
  "tree": "0efe1f718f63ab200b063b83ecbdf0fe7a46e125",
  "parents": [
    "6aff45ad84363c3d4442e5574287b2122d196246"
  ],
  "author": {
    "name": "Hugo Beauzée-Luyssen",
    "email": "hugo.beauzee@datadoghq.com",
    "time": "Wed Apr 22 15:45:57 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Apr 22 09:45:57 2026 -0400"
  },
  "message": "rpm_pfg: allow multiple tree artifacts at the same destination (#1053)\n\n* rpm_pfg: allow multiple tree artifacts at the same destination\n\nWhen two pkg_files targets both map a configure_make tree artifact\n(e.g. an include/ directory) to the same destination prefix, pkg_rpm\nwas raising a hard error even though the file contents don\u0027t overlap.\nThe duplicate-destination check was firing unconditionally before the\nsrc.is_directory branch, so two packages installing headers to\nembedded/include/ (from different subdirectories) would conflict.\n\nMove the dest_check_map conflict check inside the non-directory branch\nso that tree artifacts sharing a destination are treated as a merge\nrather than a conflict. Actual file-level collisions within those trees\nwill be caught at install time by the underlying tooling.\n\n* pkg_files: allow multiple tree artifacts at the same destination\n\nTwo TreeArtifacts mapping to the same destination directory should be\npermitted; their contents are merged by the installer. File-level\nconflicts are still caught naturally when the same destination file\npath is claimed by two different sources.\n\nThis is the general-purpose counterpart of the rpm_pfg fix in 8f67a8a.\n\n* tests: add a couple tests for the previous commit",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b80997d7ad4fc3511bdaba6489bd039df85ab0cf",
      "old_mode": 33188,
      "old_path": "pkg/private/pkg_files.bzl",
      "new_id": "31e7ae3c2aa48d3585013f8add6baf79453c897f",
      "new_mode": 33188,
      "new_path": "pkg/private/pkg_files.bzl"
    },
    {
      "type": "modify",
      "old_id": "9533ad08f8adfe52f8e3adaa4c8fc30a92959c46",
      "old_mode": 33188,
      "old_path": "pkg/rpm_pfg.bzl",
      "new_id": "fe916f0c5520edef6ce3b81de9dc9e49dfe7a3dd",
      "new_mode": 33188,
      "new_path": "pkg/rpm_pfg.bzl"
    },
    {
      "type": "modify",
      "old_id": "f663c52681edc9190892596387c6eaeb3affc309",
      "old_mode": 33188,
      "old_path": "tests/mappings/mappings_test.bzl",
      "new_id": "ec357793247d202c5fff14f989f0af9fa4a3b86d",
      "new_mode": 33188,
      "new_path": "tests/mappings/mappings_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "fd3317fb7af70178b4c7e48fce0014e9c6503222",
      "old_mode": 33188,
      "old_path": "tests/rpm/analysis_tests.bzl",
      "new_id": "0babbb64dd17f2dcda457a752c762dcb675257a0",
      "new_mode": 33188,
      "new_path": "tests/rpm/analysis_tests.bzl"
    }
  ]
}
