)]}'
{
  "commit": "eff7217f788aae2af6b86dbb91defa3171eb88b8",
  "tree": "c092558c9d6cc64725c1a41ed6797736ad5552e2",
  "parents": [
    "a4516f9887e43b774e49c22db93cdf289dc9cfb1"
  ],
  "author": {
    "name": "Leopold Schabel",
    "email": "leo@nexantic.com",
    "time": "Sat Jan 04 15:07:52 2020 +0100"
  },
  "committer": {
    "name": "Leopold Schabel",
    "email": "leo@nexantic.com",
    "time": "Sat Jan 04 15:07:52 2020 +0100"
  },
  "message": "Synthesize fake GOPATH and remove bazel_copy_generated_for_ide.sh\n\nWe can use rules_go to create a fake symlink farm GOPATH. This can be\nset as the GOPATH in IDEs that do not have native support for Bazel,\nand we can stop maintaining the bazel_copy_generated_for_ide.sh hack.\n\nThe remaining issue is that we still need Go tooling to manage our\ngo.mod file that serves as the input to Gazelle, so we need to add\nreplace directives to ensure that Go tools can resolve generated code.\n\nThe proper fix for all this is the upcoming native Bazel support in Go:\nhttps://github.com/bazelbuild/rules_go/issues/512\n\nTest Plan:\nRan `bazel build :gopath`, and a wild\n`bazel-bin/gopath/src/git.monogon.dev/source/nexantic.git/core/generated/api/schema.pb.go`\nappeared.\n\n`scripts/symlink_generated_files.sh` created a valid symlink in core/generated\nand `go mod tidy` ran successfully (despite complaining about the symlink).\n\nRunning `scripts/gazelle.sh` twice worked.\n\nX-Origin-Diff: phab/D305\nGitOrigin-RevId: 0d456bc57d4a2d72e30865ffef777d2f5be5c407\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "44bb6176c7679d9e946e23a8cadfbf87753583ee",
      "old_mode": 33188,
      "old_path": "BUILD",
      "new_id": "5367d32bae192dfedd29e8816168709e5c9738bd",
      "new_mode": 33188,
      "new_path": "BUILD"
    },
    {
      "type": "delete",
      "old_id": "e1d96e1226fbce6ae6bdc348d3a0927544491003",
      "old_mode": 33261,
      "old_path": "scripts/bazel_copy_generated_for_ide.sh",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "d6e7cee1a1d42e6755265ecb66ad405b25767b77",
      "old_mode": 33261,
      "old_path": "scripts/gazelle.sh",
      "new_id": "970f6baac23afcc06d8656bdadb0f34d13df58e9",
      "new_mode": 33261,
      "new_path": "scripts/gazelle.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5596efd324d9c23b72da73f4a73bb3e7e95bc870",
      "new_mode": 33261,
      "new_path": "scripts/symlink_generated_files.sh"
    }
  ]
}
