Skip to content

Commit

Permalink
Updated rules_cc and rules_proto (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored Sep 21, 2021
1 parent 5c09f01 commit e589105
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 32 deletions.
1 change: 0 additions & 1 deletion proto/patches/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package(default_visibility = ["//visibility:public"])

exports_files([
"com_google_protobuf-v3.10.0-bzl_visibility.patch",
"rules_proto-bzl_visibility.patch",
])
2 changes: 1 addition & 1 deletion proto/patches/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @rules_rust//proto patches

The patches here provide the required visibility to `*.bzl` files used by the rules defined in `@rules_rust//proto`.
The patches here provide the required visibility to `*.bzl` files used by the rules defined in `com_google_protobuf`.
19 changes: 0 additions & 19 deletions proto/patches/rules_proto-bzl_visibility.patch

This file was deleted.

12 changes: 4 additions & 8 deletions proto/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ def rust_proto_repositories(register_default_toolchain = True):
maybe(
http_archive,
name = "rules_proto",
sha256 = "bc12122a5ae4b517fa423ea03a8d82ea6352d5127ea48cb54bc324e8ab78493c",
strip_prefix = "rules_proto-af6481970a34554c6942d993e194a9aed7987780",
sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
strip_prefix = "rules_proto-4.0.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/af6481970a34554c6942d993e194a9aed7987780.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/af6481970a34554c6942d993e194a9aed7987780.tar.gz",
],
patch_args = ["-p1"],
patches = [
Label("//proto/patches:rules_proto-bzl_visibility.patch"),
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
],
)

Expand Down
6 changes: 3 additions & 3 deletions rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def rust_repositories(
maybe(
http_archive,
name = "rules_cc",
url = "https://github.com/bazelbuild/rules_cc/archive/624b5d59dfb45672d4239422fa1e3de1822ee110.zip",
sha256 = "8c7e8bf24a2bf515713445199a677ee2336e1c487fa1da41037c6026de04bbc3",
strip_prefix = "rules_cc-624b5d59dfb45672d4239422fa1e3de1822ee110",
url = "https://github.com/bazelbuild/rules_cc/archive/dd2758b96dc8f9f4add81eaa4154b7e3d8be6873.zip",
sha256 = "4e14abe3f288b5ae31eee4dc68472bfcd8d59a0bb1be91dd2c6bfa8af56baf19",
strip_prefix = "rules_cc-dd2758b96dc8f9f4add81eaa4154b7e3d8be6873",
type = "zip",
)

Expand Down

0 comments on commit e589105

Please sign in to comment.