blob: 12bdefea05b42eb27c865f975744a36f8e1f5958 [file]
# Copyright 2026 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
#
# 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.
module(
name = "cos_tools",
version = "0.0.1",
)
bazel_dep(name = "rules_go", version = "0.57.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.45.0", repo_name = "bazel_gazelle")
bazel_dep(name = "protobuf", version = "29.3", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.26.6")
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
go_deps.gazelle_override(
directives = ["gazelle:proto disable"],
path = "github.com/googleapis/gax-go/v2",
)
go_deps.gazelle_override(
directives = ["gazelle:proto disable"],
path = "go.chromium.org/luci",
)
use_repo(
go_deps,
"com_github_andygrunwald_go_gerrit",
"com_github_beevik_etree",
"com_github_containerd_containerd_v2",
"com_github_go_sql_driver_mysql",
"com_github_golang_glog",
"com_github_golang_protobuf",
"com_github_google_go_cmp",
"com_github_google_subcommands",
"com_github_google_uuid",
"com_github_googlecloudplatform_cloudsql_proxy",
"com_github_gorilla_sessions",
"com_github_opencontainers_runtime_spec",
"com_github_pkg_errors",
"com_github_sirupsen_logrus",
"com_github_spdx_tools_golang",
"com_github_spf13_cobra",
"com_github_spf13_pflag",
"com_github_urfave_cli_v2",
"com_google_cloud_go_compute_metadata",
"com_google_cloud_go_kms",
"com_google_cloud_go_logging",
"com_google_cloud_go_secretmanager",
"com_google_cloud_go_storage",
"org_chromium_go_luci",
"org_golang_google_api",
"org_golang_google_genproto",
"org_golang_google_grpc",
"org_golang_google_protobuf",
"org_golang_x_mod",
"org_golang_x_net",
"org_golang_x_oauth2",
"org_golang_x_sys",
)
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "com_github_googlecloudplatform_docker_credential_gcr",
commit = "6093d30b51d725877bc6971aa6700153c1a364f1",
patch_args = ["-p1"],
patches = [
"//src/third_party/docker_credential_gcr:0001-Add-explicit-targets-for-amd64-and-arm64.patch",
],
remote = "https://github.com/GoogleCloudPlatform/docker-credential-gcr",
shallow_since = "1613169008 -0800",
)