-
Notifications
You must be signed in to change notification settings - Fork 54
/
WORKSPACE
79 lines (59 loc) · 2.52 KB
/
WORKSPACE
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
76
77
78
79
workspace(name = "cilium")
register_toolchains("//bazel/toolchains:all")
ENVOY_PROJECT = "envoyproxy"
ENVOY_REPO = "envoy"
# Envoy GIT commit SHA of release
#
# We grep for the following line to generate SOURCE_VERSION file for non-git
# distribution builds. This line must start with the string ENVOY_SHA followed by
# an equals sign and a git SHA in double quotes.
#
# No other line in this file may have ENVOY_SHA followed by an equals sign!
#
# renovate: datasource=github-releases depName=envoyproxy/envoy digestVersion=v1.30.7
ENVOY_SHA = "349011c2ebd40f070510e34f4605bff1da64fb0e"
# // clang-format off: unexpected @bazel_tools reference, please indirect via a definition in //bazel
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# // clang-format on
local_repository(
name = "envoy_build_config",
path = "envoy_build_config",
)
git_repository(
name = "envoy",
commit = ENVOY_SHA,
patch_args = ["apply"],
patch_tool = "git",
patches = [
"@//patches:0001-network-Add-callback-for-upstream-authorization.patch",
"@//patches:0002-tcp_proxy-Add-filter-state-proxy_read_before_connect.patch",
"@//patches:0003-listener-add-socket-options.patch",
# This patch is needed to fix the build with clang for envoy 1.29+
# https://github.com/envoyproxy/envoy/pull/31894
"@//patches:0004-Patch-cel-cpp-to-not-break-build.patch",
"@//patches:0005-original_dst_cluster-Avoid-multiple-hosts-for-the-sa.patch",
],
# // clang-format off: Envoy's format check: Only repository_locations.bzl may contains URL references
remote = "https://github.com/envoyproxy/envoy.git",
# // clang-format on
)
#
# Bazel does not do transitive dependencies, so we must basically
# include all of Envoy's WORKSPACE file below, with the following
# changes:
# - Skip the 'workspace(name = "envoy")' line as we already defined
# the workspace above.
# - loads of "//..." need to be renamed as "@envoy//..."
#
load("@envoy//bazel:api_binding.bzl", "envoy_api_binding")
envoy_api_binding()
load("@envoy//bazel:api_repositories.bzl", "envoy_api_dependencies")
envoy_api_dependencies()
load("@envoy//bazel:repositories.bzl", "envoy_dependencies")
envoy_dependencies()
load("@envoy//bazel:repositories_extra.bzl", "envoy_dependencies_extra")
envoy_dependencies_extra()
load("@envoy//bazel:python_dependencies.bzl", "envoy_python_dependencies")
envoy_python_dependencies()
load("@envoy//bazel:dependency_imports.bzl", "envoy_dependency_imports")
envoy_dependency_imports()