)]}'
{
  "commit": "5e0bd2d43ab72cf4091e7689d02f95e07b1c1010",
  "tree": "24920f9a9a322b58fe79258a735af3a460dd08f1",
  "parents": [
    "7a1b10c4eb2a01084298537fae46f60ecf97cb6c"
  ],
  "author": {
    "name": "Hendrik Hofstadt",
    "email": "hendrik@nexantic.com",
    "time": "Mon Feb 10 19:46:41 2020 +0100"
  },
  "committer": {
    "name": "Hendrik Hofstadt",
    "email": "hendrik@nexantic.com",
    "time": "Mon Feb 10 19:46:41 2020 +0100"
  },
  "message": "Resolve embedded Go dependencies in IDEA\n\nThe bazel plugin aspects don\u0027t resolve embedded go libraries\u0027 source files.\n\n```\n\ngo_proto_library(\n    name \u003d \"api_go_proto\",\n    compilers \u003d [\"@io_bazel_rules_go//proto:go_grpc\"],\n    importpath \u003d \"git.monogon.dev/source/nexantic.git/core/generated/api\",\n    proto \u003d \":api_proto\",\n    visibility \u003d [\"//visibility:public\"],\n    deps \u003d [\"//core/api/common:go_default_library\"],\n)\n\ngo_library(\n    name \u003d \"go_default_library\",\n    embed \u003d [\":api_go_proto\"],\n    importpath \u003d \"git.monogon.dev/source/nexantic.git/core/generated/api\",\n    visibility \u003d [\"//visibility:public\"],\n)\n\n```\n\nIn this case the IDEA plugin would load only the proto library since it exposes more source files. The plugin will always load the rule with the most exposed source files.\nThis means that if we add additional source files to the go rule but still less than the proto files, they will be dropped even though we have the embedding that should theoretically merge them.\n\nThis revision merges embedded and source files so we can add custom go code to schema packages.\n\nTest Plan: patched and resynced\n\nX-Origin-Diff: phab/D394\nGitOrigin-RevId: 37639045a920b6d52e2e41119e5e06957b309f51\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a9056f1b6dfdd635027275f85c5fca939128c6f0",
      "old_mode": 33188,
      "old_path": "scripts/patches/bazel_intellij_aspect_filter.patch",
      "new_id": "940c383bc6e7aed7aa470e65d9247b16c15fceb1",
      "new_mode": 33188,
      "new_path": "scripts/patches/bazel_intellij_aspect_filter.patch"
    }
  ]
}
