-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_dependencies.bzl
75 lines (62 loc) · 2.63 KB
/
api_dependencies.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright 2017 Istio Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
#
load(":protobuf.bzl", "protobuf_repositories")
load(":cc_gogo_protobuf.bzl", "cc_gogoproto_repositories")
load(":x_tools_imports.bzl", "go_x_tools_imports_repositories")
load(":googleapis.bzl", "googleapis_repositories")
load("@io_bazel_rules_go//go:def.bzl",
"go_rules_dependencies", "go_register_toolchains", "go_repository")
load("@io_bazel_rules_go//proto:def.bzl", "proto_register_toolchains")
def mixer_api_dependencies():
protobuf_repositories(load_repo=True, bind=True)
cc_gogoproto_repositories()
go_x_tools_imports_repositories()
googleapis_repositories()
go_rules_dependencies()
go_register_toolchains()
proto_register_toolchains()
native.git_repository(
name = "org_pubref_rules_protobuf",
commit = "563b674a2ce6650d459732932ea2bc98c9c9a9bf", # Nov 28, 2017 (bazel 0.8.0 support)
remote = "https://github.com/pubref/rules_protobuf",
)
go_repository(
name = "com_github_golang_protobuf",
commit = "17ce1425424ab154092bbb43af630bd647f3bb0d", # Nov 16, 2016 (match pubref dep)
importpath = "github.com/golang/protobuf",
)
go_repository(
name = "com_github_gogo_protobuf",
commit = "100ba4e885062801d56799d78530b73b178a78f3", # Mar 7, 2017 (match pubref dep)
importpath = "github.com/gogo/protobuf",
build_file_proto_mode = "legacy",
)
go_repository(
name = "io_istio_istio_gogo_genproto",
commit = "09740ece0bc45a1cd0971a8b1f57c44b13ccd8dd", # Dec 14, 2017 (initial generation of status protos)
importpath = "istio.io/gogo-genproto",
)
# proxy has special dependencies
# It has Envoy with its protobuf repository
# It has Mixer for integration tests with go repositiores.
def mixer_api_for_proxy_dependencies():
protobuf_repositories(load_repo=False, bind=True)
cc_gogoproto_repositories()
googleapis_repositories()
go_rules_dependencies()
go_register_toolchains()
proto_register_toolchains()