From e97547bcc759a00441d86cfe0e6261521df8c405 Mon Sep 17 00:00:00 2001 From: mtail Date: Fri, 19 Jan 2018 20:33:30 -0800 Subject: [PATCH] Purge Bazel files. --- api_dependencies.bzl | 75 ------------------------- broker/v1/config/BUILD | 20 ------- cc_gogo_protobuf.bzl | 73 ------------------------- check_bazel_version.bzl | 39 ------------- googleapis.bzl | 94 -------------------------------- mesh/v1alpha1/BUILD | 17 ------ mixer/v1/BUILD | 60 -------------------- mixer/v1/config/BUILD | 17 ------ mixer/v1/config/client/BUILD | 47 ---------------- mixer/v1/config/descriptor/BUILD | 21 ------- mixer/v1/template/BUILD | 23 -------- protobuf.bzl | 61 --------------------- rbac/v1alpha1/BUILD | 14 ----- routing/v1alpha1/BUILD | 33 ----------- routing/v1alpha2/BUILD | 26 --------- x_tools_imports.bzl | 53 ------------------ 16 files changed, 673 deletions(-) delete mode 100644 api_dependencies.bzl delete mode 100644 broker/v1/config/BUILD delete mode 100644 cc_gogo_protobuf.bzl delete mode 100644 check_bazel_version.bzl delete mode 100644 googleapis.bzl delete mode 100644 mesh/v1alpha1/BUILD delete mode 100644 mixer/v1/BUILD delete mode 100644 mixer/v1/config/BUILD delete mode 100644 mixer/v1/config/client/BUILD delete mode 100644 mixer/v1/config/descriptor/BUILD delete mode 100644 mixer/v1/template/BUILD delete mode 100644 protobuf.bzl delete mode 100644 rbac/v1alpha1/BUILD delete mode 100644 routing/v1alpha1/BUILD delete mode 100644 routing/v1alpha2/BUILD delete mode 100644 x_tools_imports.bzl diff --git a/api_dependencies.bzl b/api_dependencies.bzl deleted file mode 100644 index 79e1ac46b39..00000000000 --- a/api_dependencies.bzl +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# - -load(":protobuf.bzl", "protobuf_repositories") -load(":cc_gogo_protobuf.bzl", "cc_gogoproto_repositories") -load(":x_tools_imports.bzl", "go_x_tools_imports_repositories") -load(":googleapis.bzl", "googleapis_repositories") -load("@io_bazel_rules_go//go:def.bzl", - "go_rules_dependencies", "go_register_toolchains", "go_repository") -load("@io_bazel_rules_go//proto:def.bzl", "proto_register_toolchains") - - -def mixer_api_dependencies(): - protobuf_repositories(load_repo=True, bind=True) - cc_gogoproto_repositories() - go_x_tools_imports_repositories() - googleapis_repositories() - - go_rules_dependencies() - go_register_toolchains() - - proto_register_toolchains() - - native.git_repository( - name = "org_pubref_rules_protobuf", - commit = "563b674a2ce6650d459732932ea2bc98c9c9a9bf", # Nov 28, 2017 (bazel 0.8.0 support) - remote = "https://github.com/pubref/rules_protobuf", - ) - - go_repository( - name = "com_github_golang_protobuf", - commit = "17ce1425424ab154092bbb43af630bd647f3bb0d", # Nov 16, 2016 (match pubref dep) - importpath = "github.com/golang/protobuf", - ) - - go_repository( - name = "com_github_gogo_protobuf", - commit = "100ba4e885062801d56799d78530b73b178a78f3", # Mar 7, 2017 (match pubref dep) - importpath = "github.com/gogo/protobuf", - build_file_proto_mode = "legacy", - ) - - go_repository( - name = "io_istio_gogo_genproto", - commit = "09740ece0bc45a1cd0971a8b1f57c44b13ccd8dd", # Dec 14, 2017 (initial generation of status protos) - importpath = "istio.io/gogo-genproto", - ) - - -# proxy has special dependencies -# It has Envoy with its protobuf repository -# It has Mixer for integration tests with go repositiores. -def mixer_api_for_proxy_dependencies(): - protobuf_repositories(load_repo=False, bind=True) - cc_gogoproto_repositories() - googleapis_repositories() - - go_rules_dependencies() - go_register_toolchains() - - proto_register_toolchains() diff --git a/broker/v1/config/BUILD b/broker/v1/config/BUILD deleted file mode 100644 index 6dc49c3b1cb..00000000000 --- a/broker/v1/config/BUILD +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "service_class.pb.go", - "service_plan.pb.go", - ], - visibility = ["//visibility:public"], - deps = ["@com_github_golang_protobuf//proto:go_default_library"], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "service_class.proto", - "service_plan.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/cc_gogo_protobuf.bzl b/cc_gogo_protobuf.bzl deleted file mode 100644 index 77687fd71ea..00000000000 --- a/cc_gogo_protobuf.bzl +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# -def cc_gogoproto_repositories(bind=True): - BUILD = """ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# - -licenses(["notice"]) - -load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") - -exports_files(glob(["google/**"])) - -cc_proto_library( - name = "cc_gogoproto", - srcs = [ - "gogoproto/gogo.proto", - ], - include = ".", - default_runtime = "//external:protobuf", - protoc = "//external:protoc", - visibility = ["//visibility:public"], - deps = [ - "//external:cc_wkt_protos", - ], -) -""" - native.new_git_repository( - name = "gogoproto_git", - commit = "100ba4e885062801d56799d78530b73b178a78f3", - remote = "https://github.com/gogo/protobuf", - build_file_content = BUILD, - ) - - if bind: - native.bind( - name = "cc_gogoproto", - actual = "@gogoproto_git//:cc_gogoproto", - ) - - native.bind( - name = "cc_gogoproto_genproto", - actual = "@gogoproto_git//:cc_gogoproto_genproto", - ) - diff --git a/check_bazel_version.bzl b/check_bazel_version.bzl deleted file mode 100644 index ca14e3e7034..00000000000 --- a/check_bazel_version.bzl +++ /dev/null @@ -1,39 +0,0 @@ -def _parse_bazel_version(bazel_version): - # Remove commit from version. - version = bazel_version.split(" ", 1)[0] - - # Split into (release, date) parts and only return the release - # as a tuple of integers. - parts = version.split("-", 1) - - # Turn "release" into a tuple of strings - version_tuple = () - for number in parts[0].split("."): - version_tuple += (int(number),) - return version_tuple - -# acceptable min_version <= version <= max_version -def check_version(): - check_bazel_version("0.5.4", "0.9.99") - -# acceptable min_version <= version <= max_version -def check_bazel_version(min_version, max_version): - if "bazel_version" not in dir(native): - fail("\nCurrent Bazel version is lower than 0.2.1, expected at least %s\n" % - min_version) - elif not native.bazel_version: - print("\nCurrent Bazel is not a release version, cannot check for " + - "compatibility.") - print("Make sure that you are running at least Bazel %s.\n" % min_version) - else: - _version = _parse_bazel_version(native.bazel_version) - _min_version = _parse_bazel_version(min_version) - _max_version = _parse_bazel_version(max_version) - - if _version < _min_version: - fail("\nCurrent Bazel version {} is too old, expected at least {}\n".format( - native.bazel_version, min_version)) - - if _version > _max_version: - fail("\nCurrent Bazel version {} is too new, expected at most {}\n".format( - native.bazel_version, max_version)) diff --git a/googleapis.bzl b/googleapis.bzl deleted file mode 100644 index 2cf412c4317..00000000000 --- a/googleapis.bzl +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# - -def googleapis_repositories(bind=True): - GOOGLEAPIS_BUILD_FILE = """ -package(default_visibility = ["//visibility:public"]) - -load("@io_bazel_rules_go//go:def.bzl", "go_prefix") -go_prefix("github.com/googleapis/googleapis") - -load("@org_pubref_rules_protobuf//cpp:rules.bzl", "cc_proto_library") - -cc_proto_library( - name = "cc_status_proto", - protos = [ - "google/rpc/status.proto", - ], - imports = [ - "../../external/com_github_google_protobuf/src", - ], - verbose = 0, -) - -filegroup( - name = "status_proto", - srcs = [ "google/rpc/status.proto" ], -) - -filegroup( - name = "code_proto", - srcs = [ "google/rpc/code.proto" ], -) - -filegroup( - name = "label_proto", - srcs = [ - "google/api/label.proto", - ], -) - -filegroup( - name = "metric_proto", - srcs = [ - "google/api/metric.proto", - ], -) - -load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") - -cc_proto_library( - name = "rpc_status_proto", - srcs = [ - "google/rpc/status.proto", - ], - visibility = ["//visibility:public"], - protoc = "//external:protoc", - default_runtime = "//external:protobuf", - deps = [ - "//external:cc_wkt_protos", - ], -) - -""" - native.new_git_repository( - name = "com_github_googleapis_googleapis", - build_file_content = GOOGLEAPIS_BUILD_FILE, - commit = "13ac2436c5e3d568bd0e938f6ed58b77a48aba15", # Oct 21, 2016 (only release pre-dates sha) - remote = "https://github.com/googleapis/googleapis.git", - ) - - if bind: - native.bind( - name = "rpc_status_proto", - actual = "@com_github_googleapis_googleapis//:rpc_status_proto", - ) - native.bind( - name = "rpc_status_proto_genproto", - actual = "@com_github_googleapis_googleapis//:rpc_status_proto_genproto", - ) - diff --git a/mesh/v1alpha1/BUILD b/mesh/v1alpha1/BUILD deleted file mode 100644 index 1ac1ea41522..00000000000 --- a/mesh/v1alpha1/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = ["config.pb.go"], - visibility = ["//visibility:public"], - deps = [ - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_golang_protobuf//ptypes/duration:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = ["config.proto"], - visibility = ["//visibility:public"], -) diff --git a/mixer/v1/BUILD b/mixer/v1/BUILD deleted file mode 100644 index 1a383e67f59..00000000000 --- a/mixer/v1/BUILD +++ /dev/null @@ -1,60 +0,0 @@ -load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "attributes.pb.go", - "check.pb.go", - "report.pb.go", - "service.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//gogoproto:go_default_library", - "@com_github_gogo_protobuf//proto:go_default_library", - "@com_github_gogo_protobuf//sortkeys:go_default_library", - "@com_github_gogo_protobuf//types:go_default_library", - "@io_istio_gogo_genproto//googleapis/google/rpc:go_default_library", - "@org_golang_google_grpc//:go_default_library", - "@org_golang_x_net//context:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "attributes.proto", - "check.proto", - "report.proto", - "service.proto", - ], - visibility = ["//visibility:public"], -) - -filegroup( - name = "attributes", - srcs = ["attributes.proto"], - visibility = ["//visibility:public"], -) - -filegroup( - name = "attributes_file", - srcs = ["global_dictionary.yaml"], - visibility = ["//visibility:public"], -) - -cc_proto_library( - name = "cc_proto", - srcs = glob( - ["*.proto"], - ), - default_runtime = "//external:protobuf", - protoc = "//external:protoc", - visibility = ["//visibility:public"], - deps = [ - "//external:cc_gogoproto", - "//external:cc_wkt_protos", - "//external:rpc_status_proto", - ], -) diff --git a/mixer/v1/config/BUILD b/mixer/v1/config/BUILD deleted file mode 100644 index 1653884a480..00000000000 --- a/mixer/v1/config/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = ["fixed_cfg.pb.go"], - visibility = ["//visibility:public"], - deps = [ - "//mixer/v1/config/descriptor:go_default_library", - "@com_github_gogo_protobuf//proto:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = ["cfg.proto"], - visibility = ["//visibility:public"], -) diff --git a/mixer/v1/config/client/BUILD b/mixer/v1/config/client/BUILD deleted file mode 100644 index d70d03f6f66..00000000000 --- a/mixer/v1/config/client/BUILD +++ /dev/null @@ -1,47 +0,0 @@ -load("@org_pubref_rules_protobuf//gogo:rules.bzl", "gogoslick_proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") - -cc_proto_library( - name = "cc_proto", - srcs = glob( - ["*.proto"], - ), - default_runtime = "//external:protobuf", - protoc = "//external:protoc", - visibility = ["//visibility:public"], - deps = [ - "//mixer/v1:cc_proto", - ], -) - -go_library( - name = "go_default_library", - srcs = [ - "api_spec.pb.go", - "auth.pb.go", - "client_config.pb.go", - "quota.pb.go", - "service.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "//mixer/v1:go_default_library", - "@com_github_gogo_protobuf//gogoproto:go_default_library", - "@com_github_gogo_protobuf//proto:go_default_library", - "@com_github_gogo_protobuf//sortkeys:go_default_library", - "@com_github_gogo_protobuf//types:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "api_spec.proto", - "auth.proto", - "client_config.proto", - "quota.proto", - "service.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/mixer/v1/config/descriptor/BUILD b/mixer/v1/config/descriptor/BUILD deleted file mode 100644 index ddf355d98db..00000000000 --- a/mixer/v1/config/descriptor/BUILD +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "value_type.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//proto:go_default_library", - "@com_github_gogo_protobuf//sortkeys:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "value_type.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/mixer/v1/template/BUILD b/mixer/v1/template/BUILD deleted file mode 100644 index 46b88527b61..00000000000 --- a/mixer/v1/template/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "extensions.pb.go", - "standard_types.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_github_gogo_protobuf//proto:go_default_library", - "@com_github_gogo_protobuf//protoc-gen-gogo/descriptor:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "extensions.proto", - "standard_types.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/protobuf.bzl b/protobuf.bzl deleted file mode 100644 index 92cafe5f79f..00000000000 --- a/protobuf.bzl +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# - -def protobuf_repositories(load_repo=True, bind=True): - if load_repo: - native.git_repository( - name = "com_google_protobuf", - commit = "2761122b810fe8861004ae785cc3ab39f384d342", # v3.5.0 - remote = "https://github.com/google/protobuf.git", - ) - - if bind: - native.bind( - name = "protoc", - actual = "@com_google_protobuf//:protoc", - ) - - native.bind( - name = "protocol_compiler", - actual = "@com_google_protobuf//:protoc", - ) - - native.bind( - name = "protobuf", - actual = "@com_google_protobuf//:protobuf", - ) - - native.bind( - name = "cc_wkt_protos", - actual = "@com_google_protobuf//:cc_wkt_protos", - ) - - native.bind( - name = "cc_wkt_protos_genproto", - actual = "@com_google_protobuf//:cc_wkt_protos_genproto", - ) - - native.bind( - name = "protobuf_compiler", - actual = "@com_google_protobuf//:protoc_lib", - ) - - native.bind( - name = "protobuf_clib", - actual = "@com_google_protobuf//:protoc_lib", - ) - diff --git a/rbac/v1alpha1/BUILD b/rbac/v1alpha1/BUILD deleted file mode 100644 index b157cc998ba..00000000000 --- a/rbac/v1alpha1/BUILD +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = ["rbac.pb.go"], - visibility = ["//visibility:public"], - deps = ["@com_github_golang_protobuf//proto:go_default_library"], -) - -filegroup( - name = "go_default_library_protos", - srcs = ["rbac.proto"], - visibility = ["//visibility:public"], -) diff --git a/routing/v1alpha1/BUILD b/routing/v1alpha1/BUILD deleted file mode 100644 index a6e141e6b48..00000000000 --- a/routing/v1alpha1/BUILD +++ /dev/null @@ -1,33 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "dest_policy.pb.go", - "egress_rule.pb.go", - "http_fault.pb.go", - "ingress_rule.pb.go", - "l4_fault.pb.go", - "route_rule.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_golang_protobuf//ptypes/any:go_default_library", - "@com_github_golang_protobuf//ptypes/duration:go_default_library", - "@com_github_golang_protobuf//ptypes/wrappers:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "dest_policy.proto", - "egress_rule.proto", - "http_fault.proto", - "ingress_rule.proto", - "l4_fault.proto", - "route_rule.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/routing/v1alpha2/BUILD b/routing/v1alpha2/BUILD deleted file mode 100644 index 80f156638b3..00000000000 --- a/routing/v1alpha2/BUILD +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "go_default_library", - srcs = [ - "destination_rule.pb.go", - "gateway.pb.go", - "route_rule.pb.go", - ], - visibility = ["//visibility:public"], - deps = [ - "@com_github_golang_protobuf//proto:go_default_library", - "@com_github_golang_protobuf//ptypes/duration:go_default_library", - "@com_github_golang_protobuf//ptypes/wrappers:go_default_library", - ], -) - -filegroup( - name = "go_default_library_protos", - srcs = [ - "destination_rule.proto", - "gateway.proto", - "route_rule.proto", - ], - visibility = ["//visibility:public"], -) diff --git a/x_tools_imports.bzl b/x_tools_imports.bzl deleted file mode 100644 index 9b9db659ed8..00000000000 --- a/x_tools_imports.bzl +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2017 Istio Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ -# - -def go_x_tools_imports_repositories(): - BUILD_FILE = """ -package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_go//go:def.bzl", "go_binary") -load("@io_bazel_rules_go//go:def.bzl", "go_prefix") - -go_prefix("golang.org/x/tools") - -licenses(["notice"]) # New BSD - -exports_files(["LICENSE"]) - -go_binary( - name = "goimports", - srcs = [ - "cmd/goimports/doc.go", - "cmd/goimports/goimports.go", - "cmd/goimports/goimports_gc.go", - "cmd/goimports/goimports_not_gc.go", - ], - deps = [ - "@org_golang_x_tools//imports:go_default_library", - ], -) -""" - # bazel rule for fixing up cfg.pb.go relies on running goimports - # we import it here as a git repository to allow projection of a - # simple build rule that will build the binary for usage (and avoid - # the need to project a more complicated BUILD file over the entire - # tools repo.) - native.new_git_repository( - name = "org_golang_x_tools_imports", - build_file_content = BUILD_FILE, - commit = "e6cb469339aef5b7be0c89de730d5f3cc8e47e50", # Jun 23, 2017 (no releases) - remote = "https://github.com/golang/tools.git", - )