)]}'
{
  "commit": "56d8e7cab446c164a8c765e6bf94c69e0aec7ebf",
  "tree": "df034dc3ba61441acd726ea6ac71671aab3c8f37",
  "parents": [
    "4798edcf501e7f001e1d25f07ad0bb523be43ea6"
  ],
  "author": {
    "name": "Russ Cox",
    "email": "rsc@golang.org",
    "time": "Tue Jul 03 12:54:06 2018 -0400"
  },
  "committer": {
    "name": "Russ Cox",
    "email": "rsc@golang.org",
    "time": "Tue Jul 10 05:41:44 2018 +0000"
  },
  "message": "cmd/go/internal/modcmd: drop test sources and data from mod -vendor\n\nThe module support redefines the package pattern \"all\" to mean\nall packages in the main module, plus their dependencies and\ntest dependencies, recursively. The idea was to make \"go test all\"\nuseful: it tests everything in the main module plus everything\nthe main module depends on, and so on. A complex project\nis probably creating a combination of dependency versions\nthat has never existed before, so it is only prudent to make it\neasy to test those dependencies in that configuration.\n\nThe vendor operation also applies to that same \"all\" set of packages.\n\nBut vendoring is freezing a combination that you\u0027re happy\nwith and hopefully have already tested. At that point the rationale\nfor including all the tests of dependencies is weakened, and\nthere is a significant space savings to not copying them (and\npossibly-large associated test data) into the vendor directory.\n\nThis CL changes vendor to apply to all packages in the main\nmodule, plus the (direct and indirect) dependencies of those\npackages and their tests. Vendor no longer copies *_test.go into\nthe repo at all, nor the packages imported by those source files\nand not imported otherwise.\n\nAlso copy legal files (LICENSE etc) when vendoring.\n\nFixes golang/go#25672.\n\nChange-Id: I0713d4c751145df827460707e4085801fffa2a51\nReviewed-on: https://go-review.googlesource.com/122256\nReviewed-by: Bryan C. Mills \u003cbcmills@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "82069710db39d6af87e2358b3a1912813247f047",
      "old_mode": 33188,
      "old_path": "vendor/cmd/go/internal/modcmd/mod.go",
      "new_id": "efdcd8a5fd9149b643d302ee442044093b8efb01",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/internal/modcmd/mod.go"
    },
    {
      "type": "modify",
      "old_id": "6dc1f4a48accce877652d9dcb7b8a7503028c83d",
      "old_mode": 33188,
      "old_path": "vendor/cmd/go/internal/modcmd/vendor.go",
      "new_id": "6a17dc1183b7f2a4e3be99770c25342173f0f2b2",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/internal/modcmd/vendor.go"
    },
    {
      "type": "modify",
      "old_id": "09244837e67151d2ee6ea1cc67ba9676122b9155",
      "old_mode": 33188,
      "old_path": "vendor/cmd/go/internal/vgo/load.go",
      "new_id": "81861e38f7556f641cbb294d7ddf065ec0fd0a46",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/internal/vgo/load.go"
    },
    {
      "type": "modify",
      "old_id": "d0ccb06c2f8c5cebcbfea4c166932cbf22bc10e9",
      "old_mode": 33188,
      "old_path": "vendor/cmd/go/testdata/vendormod/go.mod",
      "new_id": "74aaa3b8f937e5e3a45925e0602c40384eb85355",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/go.mod"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "311f7216d6052569610a37d91cc272ed4db000a9",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/mypkg/go.mod"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "49d990f6f15f305d2f36acaa287dd6ea9e826de4",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/mypkg/mydir/d.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "eb2863ed9415e7a72d7832f5539bfcf537639022",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/subdir/v1_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "421376db9e8aee847e9d774891e73098a7415e94",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/x/x2/dummy.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7f3de9f0bfa31ad6982e51939471499e602d5f0e",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/testdata/vendormod/x/x_test.go"
    },
    {
      "type": "modify",
      "old_id": "52a61354348e483991db976262222a581aeb6fff",
      "old_mode": 33188,
      "old_path": "vendor/cmd/go/vgo_test.go",
      "new_id": "30ef8942a821c5b585bfdcd26067fd00f36b48f8",
      "new_mode": 33188,
      "new_path": "vendor/cmd/go/vgo_test.go"
    }
  ]
}
