-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description: We no longer have prebuilt dependencies, so ci/WORKSPACE is no longer needed. Simplifies how CI runs. Risk Level: Med for depending projects Testing: CI Docs Changes: Release Notes: Signed-off-by: Lizan Zhou <[email protected]>
- Loading branch information
Showing
10 changed files
with
75 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
api | ||
examples/grpc-bridge/script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
def _default_envoy_api_impl(ctx): | ||
ctx.file("WORKSPACE", "") | ||
ctx.file("BUILD.bazel", "") | ||
api_dirs = [ | ||
"bazel", | ||
"docs", | ||
"envoy", | ||
"examples", | ||
"test", | ||
"tools", | ||
] | ||
for d in api_dirs: | ||
ctx.symlink(ctx.path(ctx.attr.api).dirname.get_child(d), d) | ||
|
||
_default_envoy_api = repository_rule( | ||
implementation = _default_envoy_api_impl, | ||
attrs = { | ||
"api": attr.label(default = "@envoy//api:BUILD"), | ||
}, | ||
) | ||
|
||
def envoy_api_dependencies(): | ||
# Treat the data plane API as an external repo, this simplifies exporting the API to | ||
# https://github.com/envoyproxy/data-plane-api. | ||
if "envoy_api" not in native.existing_rules().keys(): | ||
_default_envoy_api(name = "envoy_api") | ||
|
||
native.bind( | ||
name = "api_httpbody_protos", | ||
actual = "@googleapis//:api_httpbody_protos", | ||
) | ||
native.bind( | ||
name = "http_api_protos", | ||
actual = "@googleapis//:http_api_protos", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.