diff --git a/WORKSPACE b/WORKSPACE index dbcc454629..f93d4f7b1a 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -119,7 +119,7 @@ rules_proto_grpc_toolchains() rules_proto_grpc_repos() # Set up Protobuf rules. -# Required by: pigweed, com_github_bazelbuild_buildtools. +# Required by: pigweed. # Used in modules: //pw_protobuf. http_archive( name = "com_google_protobuf", @@ -252,54 +252,6 @@ register_gcc_arm_none_toolchain() # Registers platforms for use with toolchain resolution register_execution_platforms("//pw_build/platforms:all") -# Set up Golang toolchain rules. -# Required by: bazel_gazelle, com_github_bazelbuild_buildtools. -# Used in modules: None. -http_archive( - name = "io_bazel_rules_go", - sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", - ], -) - -load( - "@io_bazel_rules_go//go:deps.bzl", - "go_register_toolchains", - "go_rules_dependencies", -) - -go_rules_dependencies() - -go_register_toolchains() - -# Set up bazel package manager for golang. -# Required by: com_github_bazelbuild_buildtools. -# Used in modules: None. -http_archive( - name = "bazel_gazelle", - sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") - -gazelle_dependencies() - -# Set up bazel buildtools (bazel linter and formatter). -# Required by: pigweed. -# Used in modules: //:all (bazel specific tools). -http_archive( - name = "com_github_bazelbuild_buildtools", - sha256 = "c28eef4d30ba1a195c6837acf6c75a4034981f5b4002dda3c5aa6e48ce023cf1", - strip_prefix = "buildtools-4.0.1", - url = "https://github.com/bazelbuild/buildtools/archive/4.0.1.tar.gz", -) - load("//pw_build:target_config.bzl", "pigweed_config") # Configure Pigweeds backend.