diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 36695c3fca..f5bb420f6a 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -10,12 +10,10 @@ tasks: ubuntu2004: # enable some unflipped incompatible flags on this platform to ensure we don't regress. build_flags: - - "--incompatible_load_cc_rules_from_bzl" - "--incompatible_load_proto_rules_from_bzl" - "--incompatible_restrict_string_escapes" - "--incompatible_enable_cc_toolchain_resolution" test_flags: - - "--incompatible_load_cc_rules_from_bzl" - "--incompatible_load_proto_rules_from_bzl" - "--incompatible_restrict_string_escapes" - "--incompatible_enable_cc_toolchain_resolution" diff --git a/go/private/repositories.bzl b/go/private/repositories.bzl index 8560d67f0e..ab65d1a28c 100644 --- a/go/private/repositories.bzl +++ b/go/private/repositories.bzl @@ -130,21 +130,6 @@ def go_rules_dependencies(is_rules_go = False): patch_args = ["-p1"], ) - # Needed for additional targets declared around binaries with c-archive - # and c-shared link modes. - # releaser:upgrade-dep bazelbuild rules_cc - _maybe( - http_archive, - name = "rules_cc", - # main, as of 2021-06-30 - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/daf6ace7cfeacd6a83e9ff2ed659f416537b6c74.zip", - "https://github.com/bazelbuild/rules_cc/archive/daf6ace7cfeacd6a83e9ff2ed659f416537b6c74.zip", - ], - sha256 = "b295cad8c5899e371dde175079c0a2cdc0151f5127acc92366a8c986beb95c76", - strip_prefix = "rules_cc-daf6ace7cfeacd6a83e9ff2ed659f416537b6c74", - ) - # Proto dependencies # These are limited as much as possible. In most cases, users need to # declare these on their own (probably via go_repository rules generated diff --git a/go/private/rules/BUILD.bazel b/go/private/rules/BUILD.bazel index ebc8aa814c..349deadaa7 100644 --- a/go/private/rules/BUILD.bazel +++ b/go/private/rules/BUILD.bazel @@ -30,7 +30,6 @@ bzl_library( name = "cgo", srcs = ["cgo.bzl"], visibility = ["//go:__subpackages__"], - # Don't list dependency on @rules_cc//cc:defs deps = [ "@io_bazel_rules_go//go/private:common", "@io_bazel_rules_go//go/private:mode", diff --git a/tests/core/c_linkmodes/BUILD.bazel b/tests/core/c_linkmodes/BUILD.bazel index 28d5d4dc4f..c1e9ccaa7f 100644 --- a/tests/core/c_linkmodes/BUILD.bazel +++ b/tests/core/c_linkmodes/BUILD.bazel @@ -1,5 +1,4 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary") -load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") go_binary( name = "adder_archive", diff --git a/tests/core/cgo/BUILD.bazel b/tests/core/cgo/BUILD.bazel index d205044cc3..60b020900b 100644 --- a/tests/core/cgo/BUILD.bazel +++ b/tests/core/cgo/BUILD.bazel @@ -1,5 +1,4 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_import", "cc_library") go_test( name = "opts_test", diff --git a/tests/core/cgo/objc/BUILD.bazel b/tests/core/cgo/objc/BUILD.bazel index bb368cd78c..030408f17a 100644 --- a/tests/core/cgo/objc/BUILD.bazel +++ b/tests/core/cgo/objc/BUILD.bazel @@ -1,5 +1,4 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@rules_cc//cc:defs.bzl", "objc_library") go_test( name = "objc_test", diff --git a/tests/legacy/cgo_select/BUILD.bazel b/tests/legacy/cgo_select/BUILD.bazel index 5dd9108a5b..76b87282c1 100644 --- a/tests/legacy/cgo_select/BUILD.bazel +++ b/tests/legacy/cgo_select/BUILD.bazel @@ -1,5 +1,4 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -load("@rules_cc//cc:defs.bzl", "cc_library") go_library( name = "go_default_library", diff --git a/tests/legacy/examples/cgo/cc_dependency/BUILD.bazel b/tests/legacy/examples/cgo/cc_dependency/BUILD.bazel index feabb79bf2..4771c9467e 100644 --- a/tests/legacy/examples/cgo/cc_dependency/BUILD.bazel +++ b/tests/legacy/examples/cgo/cc_dependency/BUILD.bazel @@ -1,5 +1,3 @@ -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_import", "cc_library") - config_setting( name = "darwin", values = {"cpu": "darwin"}, diff --git a/tests/legacy/transitive_data/BUILD.bazel b/tests/legacy/transitive_data/BUILD.bazel index 4447747e8c..b2923cea39 100644 --- a/tests/legacy/transitive_data/BUILD.bazel +++ b/tests/legacy/transitive_data/BUILD.bazel @@ -1,5 +1,4 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") -load("@rules_cc//cc:defs.bzl", "cc_library") go_test( name = "go_default_test", diff --git a/windows.rst b/windows.rst index ef8acaa85e..ea6608fe1a 100644 --- a/windows.rst +++ b/windows.rst @@ -66,18 +66,8 @@ Create a workspace with a simple ``cc_binary`` target. .. code:: -- WORKSPACE -- - load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - - git_repository( - name = "rules_cc", - commit = "7e650b11fe6d49f70f2ca7a1c4cb8bcc4a1fe239", - remote = "https://github.com/bazelbuild/rules_cc", - shallow_since = "1578064657 -0800", - ) -- BUILD.bazel -- - load("@rules_cc//cc:defs.bzl", "cc_binary") - cc_binary( name = "hello", srcs = ["hello.c"],