peridot/third_party/copybara/grpc-gateway/copy.bara.sky

19 lines
745 B
Text
Raw Normal View History

2023-08-25 16:43:48 +00:00
core.workflow(
name = "default",
origin = git.github_origin(
url = "https://github.com/grpc-ecosystem/grpc-gateway",
ref = "v2.16.2",
),
destination = folder.destination(),
origin_files = glob(["protoc-gen-openapiv2/defs.bzl", "LICENSE"]),
destination_files = glob(["third_party/grpc-gateway/**"], exclude = ["README_INTERNAL.txt"]),
authoring = authoring.pass_thru("peridot-copybara <peridot+copybara@lists.resf.org>"),
transformations = [
core.move("", "third_party/grpc-gateway"),
core.replace(
before = "//protoc-gen-openapiv2:protoc-gen-openapiv2",
after = "//vendor/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2",
),
],
)