Skip to content

Commit

Permalink
buildable with bazel 0.8 (#319)
Browse files Browse the repository at this point in the history
* buildable with bazel 0.8

* Increase resource
  • Loading branch information
lizan authored and qiwzhang committed Feb 2, 2018
1 parent 2df1fec commit 7471e72
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
15 changes: 2 additions & 13 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,6 @@ grpc_repositories()

transcoding_repositories()

# Workaround for Bazel > 0.4.0 since it needs newer protobuf.bzl from:
# https://github.com/google/protobuf/pull/2246
# Do not use this git_repository for anything else than protobuf.bzl
new_git_repository(
name = "protobuf_bzl",
# Injecting an empty BUILD file to prevent using any build target
build_file_content = "",
commit = "05090726144b6e632c50f47720ff51049bfcbef6",
remote = "https://github.com/google/protobuf.git",
)

git_repository(
name = "gflags_git",
commit = "fe57e5af4db74ab298523f06d2c43aa895ba9f98", # 2016-07-22
Expand All @@ -139,7 +128,7 @@ git_repository(
#
git_repository(
name = "io_bazel_rules_pex",
commit = "d4af3ca0a015e8b2d2a81a4df1df51bb0fa0bba0",
commit = "6af30588d4f11cafcb744c50935cc37f029e6e7f",
remote = "https://github.com/benley/bazel_rules_pex.git",
)

Expand All @@ -153,7 +142,7 @@ pex_repositories()

git_repository(
name = "io_bazel_rules_perl",
commit = "f6211c2db1e54d0a30bc3c3a718f2b5d45f02a22",
commit = "5510c0ee04152aed9c5d1aba3ddb01daab336ad5",
remote = "https://github.com/bazelbuild/rules_perl.git",
)

Expand Down
3 changes: 2 additions & 1 deletion nginx.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def nginx_test(name, nginx, data=None, env=None, config=None, **kwargs):

if data == None:
data = []
data += [ nginx ]
if nginx not in data:
data += [ nginx ]

if env == None:
env = {}
Expand Down
2 changes: 1 addition & 1 deletion src/nginx/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#
###############################################################################
#
load("@protobuf_bzl//:protobuf.bzl", "cc_proto_library")
load("@protobuf_git//:protobuf.bzl", "cc_proto_library")

exports_files(["version"])

Expand Down
2 changes: 1 addition & 1 deletion test/grpc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package(default_visibility = [
"//src/nginx/t:__pkg__",
])

load("@protobuf_bzl//:protobuf.bzl", "cc_proto_library")
load("@protobuf_git//:protobuf.bzl", "cc_proto_library")

cc_proto_library(
name = "grpc-test_proto",
Expand Down
2 changes: 1 addition & 1 deletion test/transcoding/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package(default_visibility = [
"//src/nginx/t:__pkg__",
])

load("@protobuf_bzl//:protobuf.bzl", "cc_proto_library")
load("@protobuf_git//:protobuf.bzl", "cc_proto_library")

cc_proto_library(
name = "bookstore",
Expand Down
2 changes: 1 addition & 1 deletion third_party/BUILD.googleapis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
licenses(["notice"])

load("@protobuf_bzl//:protobuf.bzl", "cc_proto_library")
load("@protobuf_git//:protobuf.bzl", "cc_proto_library")

exports_files(glob(["google/**"]))

Expand Down

0 comments on commit 7471e72

Please sign in to comment.