)]}'
{
  "commit": "b836b11a32bb6ade50c769e06b7d93e606d342d3",
  "tree": "98f21943311435b5f96fe81f48e5728607f21461",
  "parents": [
    "d49a0390ff65a04d5ba8bed212afd2a282e83387"
  ],
  "author": {
    "name": "Doug Parker",
    "email": "dgp1130@users.noreply.github.com",
    "time": "Sat Aug 21 23:50:51 2021 -0700"
  },
  "committer": {
    "name": "Alex Eagle",
    "email": "eagle@post.harvard.edu",
    "time": "Sun Aug 22 15:21:43 2021 -0700"
  },
  "message": "fix: update usages of `ExternalNpmPackageInfo.path` to be safe and default to empty string\n\n`ExternalNpmPackageInfo` had a `path` attribute introduced and used in\n2c2cc6eec42b0f4f805fb3063920107b78f821fd, but the provider was publicly exported beforehand. Even\nthough all internal usages were updated to include a path, this change was shipped in `3.2.0` and\nintroduced an unintentional breaking change for consumers. Most notably, `rules_postcss` manually\nimplements this provider and does not give a `path` failing in versions `3.2.0` and up.\n\nhttps://github.com/bazelbuild/rules_postcss/blob/2bd16fda40cd4bf4fbf0b477b968366ec1602103/internal/plugin.bzl#L30-L41\n\nSolution here is to safely retrieve the `path` attribute and default to empty string at all places\nit is used. A test is also introduced to ensure that a `nodejs_binary()` can depend on a custom\n`ExternalNpmPackageInfo` provider without a `path` attribute, which should hopefully prevent against\nregressions.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d30429c918bb480b368cc09db1637c0ee48f36e",
      "old_mode": 33188,
      "old_path": "internal/linker/link_node_modules.bzl",
      "new_id": "eb57221e17e4621b3036ef4703a4fe9ead2426eb",
      "new_mode": 33188,
      "new_path": "internal/linker/link_node_modules.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "146573c0e8f413b9538f981bbdf5c2f9ea73d653",
      "new_mode": 33188,
      "new_path": "internal/linker/test/default_path/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "865934c4aa7b2bdc6ae46498adaf7badf70e1921",
      "new_mode": 33188,
      "new_path": "internal/linker/test/default_path/custom_external_npm_package_info.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "daeacec2f3b811bad64e16f6c2864303f4062c38",
      "new_mode": 33188,
      "new_path": "internal/linker/test/default_path/default_path.js"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "91291dfb0f4cc24d7ddb92756a24adfea66f9bec",
      "new_mode": 33188,
      "new_path": "internal/linker/test/default_path/golden.txt"
    },
    {
      "type": "modify",
      "old_id": "a2dd51dc7db7101b715e93dceeb316cb0efc6e31",
      "old_mode": 33188,
      "old_path": "internal/node/node.bzl",
      "new_id": "30f8485cedf654f6dba844d86d5bb96cd585c922",
      "new_mode": 33188,
      "new_path": "internal/node/node.bzl"
    },
    {
      "type": "modify",
      "old_id": "43a0580d835ae0b3ed20238c280c0edcca0c5407",
      "old_mode": 33188,
      "old_path": "internal/providers/external_npm_package_info.bzl",
      "new_id": "72aecdaa3f1c3cc093d1ef526eb4e9885bf207de",
      "new_mode": 33188,
      "new_path": "internal/providers/external_npm_package_info.bzl"
    },
    {
      "type": "modify",
      "old_id": "ede3f4aa848be370b539eaef6d295c81adebed34",
      "old_mode": 33188,
      "old_path": "internal/providers/node_runtime_deps_info.bzl",
      "new_id": "151978e9a07a6f2eda730a24b6f4deb0df5e6918",
      "new_mode": 33188,
      "new_path": "internal/providers/node_runtime_deps_info.bzl"
    }
  ]
}
