Skip to content

Commit

Permalink
Merge pull request #5959 from rmohr/protoc
Browse files Browse the repository at this point in the history
Use precompiled protoc
  • Loading branch information
kubevirt-bot committed Jul 1, 2021
2 parents 8730c57 + cb53f6e commit 1c83072
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ http_archive(
)

# Additional bazel rules
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_proto",
sha256 = "bc12122a5ae4b517fa423ea03a8d82ea6352d5127ea48cb54bc324e8ab78493c",
strip_prefix = "rules_proto-af6481970a34554c6942d993e194a9aed7987780",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/af6481970a34554c6942d993e194a9aed7987780.tar.gz",
],
)

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

rules_proto_dependencies()

rules_proto_toolchains()

http_archive(
name = "io_bazel_rules_go",
Expand All @@ -47,17 +63,6 @@ http_archive(
],
)

http_archive(
name = "com_google_protobuf",
sha256 = "cd218dc003eacc167e51e3ce856f6c2e607857225ef86b938d95650fcbb2f8e4",
strip_prefix = "protobuf-6d4e7fd7966c989e38024a8ea693db83758944f1",
# version 3.10.0
urls = [
"https://github.com/google/protobuf/archive/6d4e7fd7966c989e38024a8ea693db83758944f1.zip",
"https://storage.googleapis.com/builddeps/cd218dc003eacc167e51e3ce856f6c2e607857225ef86b938d95650fcbb2f8e4",
],
)

http_archive(
name = "io_bazel_rules_docker",
sha256 = "95d39fd84ff4474babaf190450ee034d958202043e366b9fc38f438c9e6c3334",
Expand Down Expand Up @@ -194,10 +199,6 @@ load("@com_github_ash2k_bazel_tools//goimports:deps.bzl", "goimports_dependencie

goimports_dependencies()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load(
"@bazel_gazelle//:deps.bzl",
"gazelle_dependencies",
Expand Down

0 comments on commit 1c83072

Please sign in to comment.