diff --git a/.bazelrc b/.bazelrc index d6f139529..6e46063f1 100644 --- a/.bazelrc +++ b/.bazelrc @@ -15,6 +15,3 @@ # Defaults to auto which means off for Windows, explicitly enable for sh tests build --enable_runfiles=yes -# Explicitly enable WORKSPACE -# See https://github.com/bazelbuild/bazel/issues/23023 -common --enable_workspace diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index b4fd8bc16..000000000 --- a/WORKSPACE +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2017 The Bazel 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. -workspace(name = "bazel_toolchains") - -# Use pre-generated toolchain configs for the latest Bazel and latest Ubuntu 16.04 -# container. Pre-generated configs are only provided as a convenience for -# experimenting with configuring Bazel for remote builds. Further, there are -# no guarantees on how long after a new release of Bazel or the Ubuntu 16.04 -# container mentioned above the corresponding pre-generated configs will be -# available. So, never depend directly on the URL mentioned below to download -# toolchain configs in production because they may break without warning. -# For more information and alternatives, please visit: -# https://github.com/bazelbuild/bazel-toolchains#rbe_configs_gen---cli-tool-to-generate-configs -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "rbe_default", - # The sha256 digest of the tarball might change without notice. So it's not - # included here. Please refer to the link mentioned above for instructions - # on how to generate your own configs. - urls = ["https://storage.googleapis.com/rbe-toolchain/bazel-configs/rbe-ubuntu1604/latest/rbe_default.tar"], -) - -load( - "//repositories:repositories.bzl", - bazel_toolchains_repositories = "repositories", -) - -bazel_toolchains_repositories() diff --git a/repositories/BUILD b/repositories/BUILD deleted file mode 100644 index b454e8a66..000000000 --- a/repositories/BUILD +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2016 The Bazel 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("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//visibility:public"]) - -bzl_library( - name = "repositories", - srcs = [ - "repositories.bzl", - ], -) diff --git a/repositories/repositories.bzl b/repositories/repositories.bzl deleted file mode 100644 index 85100ab27..000000000 --- a/repositories/repositories.bzl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2016 The Bazel 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. - -# Once recursive workspace is implemented in Bazel, this file should cease -# to exist. -""" -Provides functions to pull all dependencies of this repository. -""" - -load( - "@bazel_tools//tools/build_defs/repo:http.bzl", - "http_archive", -) - -def repositories(): - """Download dependencies of bazel-toolchains.""" - excludes = native.existing_rules().keys() - - if "bazel_skylib" not in excludes: - http_archive( - name = "bazel_skylib", - sha256 = "e5d90f0ec952883d56747b7604e2a15ee36e288bb556c3d0ed33e818a4d971f2", - strip_prefix = "bazel-skylib-1.0.2", - urls = ["https://github.com/bazelbuild/bazel-skylib/archive/1.0.2.tar.gz"], - )