bazel/service_control.bzl (25 lines of code) (raw):

# Copyright 2019 Google LLC # # 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 # # https://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("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") SERVICE_CONTROL_CLIENT_GIT_SHA = "0fdd671e67b7f4fe07ce97b216406d63251936ff" SERVICE_CONTROL_CLIENT_SHA256 = "2fb191b4314e0391cff4a4cc463cb5d0a0ffb490abec80f04735e93ff2f653b3" def service_control_client_repositories(bind = True): http_archive( name = "servicecontrol_client_git", sha256 = SERVICE_CONTROL_CLIENT_SHA256, strip_prefix = "service-control-client-cxx-" + SERVICE_CONTROL_CLIENT_GIT_SHA, # 2022-07-08 urls = ["https://github.com/cloudendpoints/service-control-client-cxx/archive/" + SERVICE_CONTROL_CLIENT_GIT_SHA + ".tar.gz"], #TODO(taoxuy): remove this mapping once Envoy googleapis_git is updated to use the version with servicecontrol_proto change repo_mapping = {"@googleapis_git": "@com_github_googleapis_googleapis"}, )