| """Bazel Modules used by the Skia Infra repository.""" |
| |
| module( |
| name = "skia-infra", |
| version = "0.0.0", |
| ) |
| |
| bazel_dep(name = "aspect_bazel_lib", version = "2.21.1") |
| bazel_dep(name = "aspect_rules_esbuild", version = "0.25.0") |
| bazel_dep(name = "aspect_rules_js", version = "2.5.0") |
| bazel_dep(name = "aspect_rules_ts", version = "3.7.0") |
| bazel_dep(name = "aspect_rules_swc", version = "2.0.0") |
| bazel_dep(name = "buildifier_prebuilt", version = "8.2.1") |
| bazel_dep(name = "rules_go", version = "0.58.3") # Needs to go before Gazelle. |
| bazel_dep(name = "gazelle") |
| |
| # This version of Gazelle has been patched with directives for |
| # go.chromium.org/luci and github.com/bazelbuild/remote-apis-sdks. We should be |
| # able to remove this git_override when the next version of gazelle is released |
| # to the Bazel Central Registry. |
| git_override( |
| module_name = "gazelle", |
| commit = "58be1038215b0cff6604a1d31f45ae3770a99a75", |
| remote = "https://github.com/bazel-contrib/bazel-gazelle", |
| ) |
| |
| bazel_dep(name = "protobuf", version = "33.0", repo_name = "com_google_protobuf") |
| bazel_dep(name = "rules_browsers", version = "0.2.0") |
| bazel_dep(name = "rules_apko", version = "1.4.0") |
| bazel_dep(name = "rules_distroless", version = "0.6.1") |
| bazel_dep(name = "rules_nodejs", version = "6.5.0") |
| bazel_dep(name = "rules_pkg", version = "1.1.0") |
| bazel_dep(name = "rules_proto", version = "7.1.0") |
| bazel_dep(name = "rules_python", version = "1.6.0") |
| bazel_dep(name = "rules_shell", version = "0.6.1") |
| bazel_dep(name = "bazel_skylib", version = "1.8.2") |
| bazel_dep(name = "rules_oci", version = "2.2.7") |
| bazel_dep(name = "googleapis", version = "0.0.0-20251127-8cd3749f") |
| bazel_dep(name = "grpc", version = "1.76.0.bcr.1") |
| bazel_dep(name = "abseil-cpp", version = "20250814.1") |
| bazel_dep(name = "rules_cc", version = "0.2.15") |
| bazel_dep(name = "platforms", version = "1.0.0") |
| bazel_dep(name = "xds", version = "0.0.0-20251210-ee656c7") |
| bazel_dep(name = "protoc-gen-validate", version = "1.2.1.bcr.2") |
| |
| http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
| |
| git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| |
| git_repository( |
| name = "swiftshader", |
| build_file_content = """ |
| filegroup( |
| name = "all_files", |
| srcs = glob(["include/**/*"]), |
| visibility = ["//visibility:public"] |
| ) |
| """, |
| commit = "3c4bdf66d81d01a215b88bfea3ac4cc8ca507779", |
| remote = "https://swiftshader.googlesource.com/SwiftShader", |
| ) |
| |
| gcs_mirror = use_extension("//bazel:gcs_mirror.bzl", "gcs_mirror") |
| |
| #################################################################################################### |
| # rules_apko setup |
| #################################################################################################### |
| |
| apko = use_extension("@rules_apko//apko:extensions.bzl", "apko") |
| apko.toolchain(apko_version = "0.22.0") |
| apko.translate_lock( |
| name = "basealpine-apk-install", |
| lock = "@@//kube/basealpine:basealpine.lock.json", |
| ) |
| use_repo(apko, "basealpine-apk-install") |
| |
| #################################################################################################### |
| # aspect_rules_ts setup |
| #################################################################################################### |
| |
| rules_ts_ext = use_extension( |
| "@aspect_rules_ts//ts:extensions.bzl", |
| "ext", |
| dev_dependency = True, |
| ) |
| rules_ts_ext.deps( |
| ts_integrity = "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", |
| ts_version_from = "//:package.json", |
| ) |
| use_repo(rules_ts_ext, "npm_typescript") |
| |
| #################################################################################################### |
| # Go setup |
| #################################################################################################### |
| |
| go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") |
| |
| go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") |
| |
| go_deps.from_file(go_mod = "//:go.mod") |
| use_repo( |
| go_deps, |
| "com_github_a8m_envsubst", |
| "com_github_aclements_go_moremath", |
| "com_github_bazelbuild_buildtools", |
| "com_github_bazelbuild_remote_apis", |
| "com_github_bazelbuild_remote_apis_sdks", |
| "com_github_blakesmith_ar", |
| "com_github_bradfitz_gomemcache", |
| "com_github_ccoveille_go_safecast_v2", |
| "com_github_cenkalti_backoff", |
| "com_github_cenkalti_backoff_v4", |
| "com_github_cockroachdb_cockroach_go_v2", |
| "com_github_davecgh_go_spew", |
| "com_github_dustin_go_humanize", |
| "com_github_fatih_color", |
| "com_github_fiorix_go_web", |
| "com_github_flynn_json5", |
| "com_github_go_chi_chi_v5", |
| "com_github_go_python_gpython", |
| "com_github_golang_groupcache", |
| "com_github_golang_mock", |
| "com_github_golang_protobuf", |
| "com_github_google_go_cmp", |
| "com_github_google_go_github_v29", |
| "com_github_google_go_licenses_v2", |
| "com_github_google_shlex", |
| "com_github_google_uuid", |
| "com_github_googleapis_gax_go_v2", |
| "com_github_googlecloudplatform_opentelemetry_operations_go_exporter_trace", |
| "com_github_gorilla_securecookie", |
| "com_github_grpc_ecosystem_grpc_gateway_v2", |
| "com_github_hako_durafmt", |
| "com_github_hashicorp_go_multierror", |
| "com_github_hashicorp_golang_lru", |
| "com_github_invopop_jsonschema", |
| "com_github_jackc_pgconn", |
| "com_github_jackc_pgerrcode", |
| "com_github_jackc_pgtype", |
| "com_github_jackc_pgx_v4", |
| "com_github_jcgregorio_logger", |
| "com_github_jeffail_gabs_v2", |
| "com_github_kballard_go_shellquote", |
| "com_github_kisielk_errcheck", |
| "com_github_mark3labs_mcp_go", |
| "com_github_masterminds_semver", |
| "com_github_masterminds_sprig", |
| "com_github_miekg_dns", |
| "com_github_mikefarah_yq_v4", |
| "com_github_nfnt_resize", |
| "com_github_nlpodyssey_gopickle", |
| "com_github_olekukonko_tablewriter", |
| "com_github_otiai10_copy", |
| "com_github_patrickmn_go_cache", |
| "com_github_pkg_errors", |
| "com_github_pmezard_go_difflib", |
| "com_github_prometheus_client_golang", |
| "com_github_protocolbuffers_txtpbfmt", |
| "com_github_r3labs_sse_v2", |
| "com_github_redis_go_redis_v9", |
| "com_github_rs_cors", |
| "com_github_sbinet_npyio", |
| "com_github_shirou_gopsutil", |
| "com_github_skia_dev_google_api_go_client", |
| "com_github_skia_dev_protoc_gen_twirp_typescript", |
| "com_github_spf13_cobra", |
| "com_github_stretchr_testify", |
| "com_github_syndtr_goleveldb", |
| "com_github_tarm_serial", |
| "com_github_texttheater_golang_levenshtein", |
| "com_github_twitchtv_twirp", |
| "com_github_unrolled_secure", |
| "com_github_urfave_cli_v2", |
| "com_github_vektra_mockery_v2", |
| "com_github_willf_bitset", |
| "com_github_xeipuuv_gojsonschema", |
| "com_github_yannh_kubeconform", |
| "com_github_yusufpapurcu_wmi", |
| "com_github_zeebo_bencode", |
| "com_google_cloud_go", |
| "com_google_cloud_go_auth", |
| "com_google_cloud_go_bigquery", |
| "com_google_cloud_go_bigtable", |
| "com_google_cloud_go_binaryauthorization", |
| "com_google_cloud_go_compute_metadata", |
| "com_google_cloud_go_containeranalysis", |
| "com_google_cloud_go_datastore", |
| "com_google_cloud_go_firestore", |
| "com_google_cloud_go_iam", |
| "com_google_cloud_go_logging", |
| "com_google_cloud_go_monitoring", |
| "com_google_cloud_go_pubsub", |
| "com_google_cloud_go_redis", |
| "com_google_cloud_go_secretmanager", |
| "com_google_cloud_go_spanner", |
| "com_google_cloud_go_storage", |
| "in_gopkg_fsnotify_v1", |
| "in_gopkg_olivere_elastic_v5", |
| "in_gopkg_yaml_v2", |
| "in_gopkg_yaml_v3", |
| "io_k8s_api", |
| "io_k8s_apimachinery", |
| "io_k8s_client_go", |
| "io_k8s_kubectl", |
| "io_k8s_sigs_yaml", |
| "io_opencensus_go", |
| "io_opencensus_go_contrib_exporter_stackdriver", |
| "io_opentelemetry_go_otel", |
| "io_opentelemetry_go_otel_bridge_opencensus", |
| "io_opentelemetry_go_otel_sdk", |
| "io_temporal_go_api", |
| "io_temporal_go_sdk", |
| "io_temporal_go_sdk_contrib_opentelemetry", |
| "net_howett_plist", |
| "org_chromium_go_luci", |
| "org_golang_google_api", |
| "org_golang_google_genai", |
| "org_golang_google_genproto", |
| "org_golang_google_genproto_googleapis_api", |
| "org_golang_google_genproto_googleapis_rpc", |
| "org_golang_google_grpc", |
| "org_golang_google_grpc_cmd_protoc_gen_go_grpc", |
| "org_golang_google_protobuf", |
| "org_golang_x_exp", |
| "org_golang_x_net", |
| "org_golang_x_oauth2", |
| "org_golang_x_sync", |
| "org_golang_x_sys", |
| "org_golang_x_term", |
| "org_golang_x_text", |
| "org_golang_x_time", |
| "org_golang_x_tools", |
| ) |
| |
| inject_repo( |
| go_deps, |
| googleapis = "googleapis", |
| grpc = "grpc", |
| protobuf = "com_google_protobuf", |
| rules_go = "rules_go", |
| ) |
| |
| go_sdk.from_file( |
| go_mod = "//:go.mod", |
| ) |
| use_repo(go_sdk, go_sdk = "go_default_sdk") |
| |
| register_toolchains("@rules_go//go/toolchain:all") |
| |
| #################################################################################################### |
| # pnpm setup |
| #################################################################################################### |
| |
| node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") |
| node.toolchain(node_version = "20.19.0") |
| use_repo(node, "nodejs_toolchains") |
| use_repo(node, "nodejs") |
| |
| pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") |
| pnpm.pnpm( |
| name = "pnpm", |
| pnpm_version = "10.13.1", |
| ) |
| use_repo(pnpm, "pnpm") |
| |
| npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") |
| npm.npm_translate_lock( |
| name = "npm", |
| additional_file_contents = {}, |
| bins = { |
| "ts-proto": [ |
| "protoc-gen-ts_proto=./protoc-gen-ts_proto", |
| ], |
| }, |
| custom_postinstalls = {}, |
| data = [ |
| "//:package.json", |
| ], |
| dev = False, |
| external_repository_action_cache = ".aspect/rules/external_repository_action_cache", |
| lifecycle_hooks = { |
| "*": [ |
| "preinstall", |
| "install", |
| "postinstall", |
| ], |
| }, |
| lifecycle_hooks_envs = {}, |
| lifecycle_hooks_execution_requirements = { |
| "*": [ |
| "no-sandbox", |
| ], |
| }, |
| no_optional = False, |
| npm_package_lock = "//:package-lock.json", |
| npm_package_target_name = "{dirname}", |
| npmrc = "//:.npmrc", |
| package_visibility = {}, |
| patch_args = { |
| "*": [ |
| "-p0", |
| ], |
| }, |
| patches = {}, |
| pnpm_lock = "//:pnpm-lock.yaml", |
| preupdate = [], |
| prod = False, |
| quiet = False, |
| update_pnpm_lock = True, |
| verify_node_modules_ignored = "//:.bazelignore", |
| ) |
| use_repo( |
| npm, |
| "npm", |
| ) |
| |
| #################################################################################################### |
| # rules_python setup |
| #################################################################################################### |
| |
| python_version = "3.11" |
| |
| python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| python.toolchain( |
| configure_coverage_tool = True, |
| ignore_root_user_error = True, |
| python_version = python_version, |
| ) |
| use_repo(python, "python_3_11") |
| |
| pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| pip.parse( |
| download_only = True, |
| extra_pip_args = ["--index-url=https://pypi.org/simple"], |
| hub_name = "pypi", |
| python_version = python_version, |
| requirements_lock = "//:requirements.txt", |
| ) |
| use_repo(pip, "pypi") |
| |
| #################################################################################################### |
| # rules_distroless setup |
| #################################################################################################### |
| |
| apt = use_extension("@rules_distroless//apt:extensions.bzl", "apt") |
| |
| # These are sets of packages installed in various images. |
| apt.install( |
| name = "autoroll-be-apt-install", |
| lock = "@@//autoroll:autoroll-be.lock.json", |
| manifest = "//autoroll:autoroll-be.yaml", |
| ) |
| use_repo(apt, "autoroll-be-apt-install") |
| |
| apt.install( |
| name = "base-cipd-apt-install", |
| lock = "@@//kube/base-cipd:base-cipd.lock.json", |
| manifest = "//kube/base-cipd:base-cipd.yaml", |
| ) |
| use_repo(apt, "base-cipd-apt-install") |
| |
| apt.install( |
| name = "fiddler-base-apt-install", |
| lock = "@@//fiddlek:fiddler-base.lock.json", |
| manifest = "//fiddlek:fiddler-base.yaml", |
| ) |
| use_repo(apt, "fiddler-base-apt-install") |
| |
| apt.install( |
| name = "cd-apt-install", |
| lock = "@@//cd:cd.lock.json", |
| manifest = "//cd:cd.yaml", |
| ) |
| use_repo(apt, "cd-apt-install") |
| |
| apt.install( |
| name = "docsyserver-apt-install", |
| lock = "@@//docsyserver:docsyserver.lock.json", |
| manifest = "//docsyserver:docsyserver.yaml", |
| ) |
| use_repo(apt, "docsyserver-apt-install") |
| |
| apt.install( |
| name = "task-scheduler-jc-apt-install", |
| lock = "@@//task_scheduler:task-scheduler-jc.lock.json", |
| manifest = "//task_scheduler:task-scheduler-jc.yaml", |
| ) |
| use_repo(apt, "task-scheduler-jc-apt-install") |
| |
| #################################################################################################### |
| # Bazelisk |
| #################################################################################################### |
| |
| # This is sort of a circular dependency, but some of our Docker images need a |
| # copy of Bazelisk to perform builds. It's convenient to define that here. |
| http_file( |
| name = "bazelisk", |
| downloaded_file_path = "bazelisk", |
| executable = True, |
| sha256 = "e1508323f347ad1465a887bc5d2bfb91cffc232d11e8e997b623227c6b32fb76", |
| url = "https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-linux-amd64", |
| ) |
| |
| ###################### |
| # Docker containers. # |
| ###################### |
| |
| oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") |
| |
| # This is a pinned version of JS fiddle - we use the canvaskit.js/canvaskit.wasm inside it |
| # when running apps (e.g. skottie.skia.org) locally. All our apps (except debugger) use the stock |
| # version of CanvasKit, so they can share this. If there is an update to CanvasKit APIs and we want |
| # to test them out locally, we should update this to a newer version. See the k8s-config repo |
| # for a recent commit to use. You can also get the latest sha256 by either: |
| # 1. Running `docker pull gcr.io/skia-public/jsfiddle-final:latest` and looking for the sha256 |
| # in the log. This requires docker to be installed and authenticated through gcloud. |
| # 2. Going to https://skia.googlesource.com/k8s-config/+/refs/heads/main/skia-infra-public/jsfiddle.yaml |
| # and looking for sha256 on the jsfiddle-final image. |
| oci.pull( |
| name = "pinned_jsfiddle", |
| digest = "sha256:ae6ba3295d1f5e0bc241f0f6ab5833ee95496715f6eb864609a7bed15a88c9d4", |
| image = "gcr.io/skia-public/jsfiddle-final", |
| ) |
| use_repo(oci, "pinned_jsfiddle") |
| |
| # Debugger's version of CanvasKit is built with different flags |
| oci.pull( |
| name = "pinned_debugger", |
| digest = "sha256:1f375eaf54a0636b509e8e6e1eb19b4d134a055093cde37c3aac37171d25a107", |
| image = "gcr.io/skia-public/debugger-app-final", |
| ) |
| use_repo(oci, "pinned_debugger") |
| |
| # This is an arbitrary version of the public Alpine image. Given our current rules, we must pull |
| # a docker container and extract some files, even if we are just building local versions (e.g. |
| # of debugger or skottie), so this is the image for that. |
| oci.pull( |
| name = "empty_container", |
| digest = "sha256:1e014f84205d569a5cc3be4e108ca614055f7e21d11928946113ab3f36054801", |
| image = "index.docker.io/alpine", |
| ) |
| use_repo(oci, "empty_container") |
| |
| # Pulls the gcr.io/skia-public/basealpine container, needed by the skia_app_container macro. |
| oci.pull( |
| name = "basealpine", |
| digest = "sha256:5474db9668fb91cbf71b160e41047ca48a7686a25b7e3d38da9f1c720683e2c7", |
| image = "gcr.io/skia-public/basealpine", |
| ) |
| use_repo(oci, "basealpine") |
| |
| # Pulls a specific version of Alpine to be used as a base for basealpine. |
| oci.pull( |
| name = "alpine", |
| digest = "sha256:e0baf8c394150ac5a14925e179100519f5e37c53547f647acbd9f8eb3e5c4528", |
| image = "alpine:3.22", |
| ) |
| use_repo(oci, "alpine") |
| |
| # Pulls the debian:testing-slim image, needed by the skia_app_container macro. |
| # Note: if using apt.install in conjunction with this or any other base image, |
| # the archive version in the YAML file must be compatible with this image. |
| oci.pull( |
| name = "debian-testing-slim", |
| digest = "sha256:fc00cc6049937150a6ae6403d0ab99db9583eafc9252b448ecec5011f62a3602", |
| image = "debian:testing-slim", |
| platforms = ["linux/amd64"], |
| ) |
| use_repo(oci, "debian-testing-slim") |
| |
| # Pulls the gcr.io/skia-public/docsyserver-base container, needed by docsyserver. |
| oci.pull( |
| name = "docsyserver-base", |
| digest = "sha256:c92739a43735be44a28135c9eac75753c64c2d3b9ba5c97efcaf57d5bd2ab12a", |
| image = "gcr.io/skia-public/docsyserver-base", |
| ) |
| use_repo(oci, "docsyserver-base") |
| |
| # Pulls the envoyproxy/envoy-alpine:v1.16.1 container, needed by skfe. |
| oci.pull( |
| name = "envoy_alpine", |
| digest = "sha256:061559f887b6b7980ea1ebb5af636079858d8b0f51cd803b9fe16f87811ff7d3", |
| image = "index.docker.io/envoyproxy/envoy-alpine", |
| ) |
| use_repo(oci, "envoy_alpine") |
| |
| # Pulls the node alpine container, needed by npm-audit-mirror. |
| oci.pull( |
| name = "node_alpine", |
| digest = "sha256:1e168eaa83acc4b002f7b91bd3584f6800c84737337fe665224c963ed6b5b1c0", # index.docker.io/node:current-alpine3.21 as of Oct 2, 2025. |
| image = "docker.io/library/node", |
| ) |
| use_repo(oci, "node_alpine") |
| |
| # Pulls the https://gcr.io/cloud-builders/kubectl container, needed by apps that use kubectl. |
| oci.pull( |
| name = "kubectl", |
| digest = "sha256:63553d791cbdd3aa9fc2bc0b3a6a6d33130c1b8927b2db368c756aa45c89a356", # 25 Oct 2023 |
| image = "gcr.io/cloud-builders/kubectl", |
| ) |
| use_repo(oci, "kubectl") |
| |
| # Pulls the gcr.io/google.com/cloudsdktool/cloud-sdk:latest container needed by Perf backup. |
| oci.pull( |
| name = "cloudsdk", |
| digest = "sha256:900b74f1fb2c9f93c6d4b121a7f23981143496f36aacb72e596ccaedad640cf1", # @latest as of Apr 27, 2022. |
| image = "gcr.io/google.com/cloudsdktool/cloud-sdk", |
| ) |
| use_repo(oci, "cloudsdk") |
| |
| # Pulls the google-go.pkg.dev/golang image. |
| oci.pull( |
| name = "golang", |
| digest = "sha256:80ccdc8f8ac8d819cdbc15a33334125e0288c09ac030307dcd893d2b5c6179ae", |
| image = "google-go.pkg.dev/golang", |
| ) |
| use_repo(oci, "golang") |
| |
| # docker.io/temporalio/server:1.29.2 as of 07/08/2026. |
| oci.pull( |
| name = "temporal-server", |
| digest = "sha256:846c6f50f53ac39ff7399ab9e20e583b993b14c1bca4c3d77dab87b8c2821055", |
| image = "docker.io/temporalio/server", |
| platforms = ["linux/amd64"], |
| ) |
| use_repo(oci, "temporal-server") |
| |
| # docker.io/temporalio/admin-tools:1.29.1-tctl-1.18.4-cli-1.5.0 as of 07/08/2026. |
| oci.pull( |
| name = "temporal-admin-tools", |
| digest = "sha256:67ee116b6442fd467168081509debecd61bafa506f56aa78e0ee6b6ad3c54691", |
| image = "docker.io/temporalio/admin-tools", |
| platforms = ["linux/amd64"], |
| ) |
| |
| # docker.io/temporalio/ui:2.44.0 (compatible with 1.29.2) as of 07/08/2026. |
| oci.pull( |
| name = "temporal-ui", |
| digest = "sha256:8c43757f169c94051398fa2abcf8fca05405ca492d0b44cff0ed059537cd33de", |
| image = "docker.io/temporalio/ui", |
| platforms = ["linux/amd64"], |
| ) |
| use_repo( |
| oci, |
| "debian-testing-slim_linux_amd64", |
| "temporal-admin-tools", |
| "temporal-admin-tools_linux_amd64", |
| "temporal-server_linux_amd64", |
| "temporal-ui", |
| "temporal-ui_linux_amd64", |
| ) |
| |
| #################################################################################################### |
| # CA Certificates |
| #################################################################################################### |
| |
| gcs_mirror.http_archive( |
| name = "ca-certificates", |
| build_file_content = "exports_files([\"data.tar.xz\"])", |
| sha256 = "0b5970c26e74d254bb2a59100d7b9d0612ea0b60bd78987cd71e0aebae5221d7", |
| url = "https://snapshot-cloudflare.debian.org/archive/debian/20260421T143351Z/pool/main/c/ca-certificates/ca-certificates_20260223_all.deb", |
| ) |
| use_repo(gcs_mirror, "ca-certificates") |
| |
| #################################################################################################### |
| # bazel_skylib |
| #################################################################################################### |
| |
| # These are used for unit tests. |
| register_toolchains( |
| "@bazel_skylib//toolchains/unittest:cmd_toolchain", |
| ) |
| |
| #################################################################################################### |
| # CIPD packages. |
| #################################################################################################### |
| |
| cipd = use_extension("//bazel/external:cipd_install.bzl", "cipd") |
| cipd.download_http( |
| name = "git", |
| cipd_package = "infra/3pp/tools/git/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "558e89bd164fd5d4d2bb88a95cdd7df1811ca5c64314a53991aab9a150f2a5a9", |
| "linux-arm64": "4688e877cb4bb4323e5355d3af856cb20aee8490684c292107498a1485d140d5", |
| "mac-amd64": "dca86a00c9dfdfda4de274d19761270bfdf502543c8f8215e41890b04ebde266", |
| "mac-arm64": "cdaf2b744496079740b19bb2e56a65b04d71bebddc8b309dbed0640bce5a8993", |
| "windows-amd64": "66f63edaa34a43bd9cbe8a3054b15f98e468b903f6d4962700b503f5ddd947d4", |
| }, |
| postinstall_cmds_posix = [ |
| "mkdir etc", |
| "bin/git config --system user.name \"Bazel Test User\"", |
| "bin/git config --system user.email \"bazel-test-user@example.com\"", |
| ], |
| postinstall_cmds_win = [ |
| "mkdir etc", |
| "bin/git.exe config --system user.name \"Bazel Test User\"", |
| "bin/git.exe config --system user.email \"bazel-test-user@example.com\"", |
| ], |
| tag = "version:3@2.55.0.chromium.11", |
| ) |
| use_repo(cipd, "git_linux-amd64", "git_windows-amd64") |
| |
| cipd.download_http( |
| name = "git_wrapper", |
| cipd_package = "infra/tools/git/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "bd92aa173c3a1c87b2239a0962faa91601d7ff68d3653fa0ba7d0e94c9625420", |
| "linux-arm64": "eb078334640b4227828ced26bb630e1d63716266c1576531f417f079013afc8d", |
| "mac-amd64": "6cf954186c8eb69636d5a05edcd0ddfd17203c01318c7f47f47beccc95f9c4c1", |
| "mac-arm64": "493d41dcc6c56aa5f03e92cb7d2e8ed2c77bb4bf93ff0e19821a78a8b7d1a218", |
| "windows-amd64": "941548d997d632e18e43beb60f5c5cbca5acf54b303e4e54ac5244c235d8cb97", |
| }, |
| tag = "git_revision:0163b19b4ab1d7a304639a403b8ff9d35ab9dca0", |
| ) |
| use_repo(cipd, "git_wrapper_linux-amd64") |
| |
| cipd.download_http( |
| name = "luci-auth", |
| cipd_package = "infra/tools/luci-auth/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "1cfe579234a7df24abd32832f12da9b93eee9428111602ba395aca58e47b15c1", |
| "linux-arm64": "a33e743a6ee2d61c1161e990eab609e8d017e0377f9d7fd818aa86b1e65cfb98", |
| "mac-amd64": "a1a185b623b04c697a6bfb6d35d1f9394f15617acbf4e23ef3ef37351fb0f671", |
| "mac-arm64": "9080982572f7280160ea24c27b1680fb42c5b8c4e387a85711a1a730567402d0", |
| "windows-amd64": "60e4e35c484b3c3e2c661a781700f7d40867f0610b14507c06804e41429b9b29", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "luci-auth_linux-amd64") |
| |
| cipd.download_http( |
| name = "docker-credential-luci", |
| cipd_package = "infra/tools/luci/docker-credential-luci/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "1ad5ccdfb711e7f468706aa2687da901723fcf2dc3faadead1546968475cf292", |
| "linux-arm64": "07ccf65ca476e74d309bf39d23d2a13e9b94a9d357c30eb12146cb191c5eca40", |
| "mac-amd64": "a68e51ccb5a3d5a5648b12c2cf944edf9522fe9c1bbf4b25c20a3a7b279dc811", |
| "mac-arm64": "640022927e4c653c64bf7844e40c67fb6c566dd5a4f0a7df67384dfe98a25686", |
| "windows-amd64": "3fe7b463e8c09c6b805c24296ef840cf0ff6a039c1915d87811d5c8ade6dc076", |
| }, |
| tag = "git_revision:b2fad5ab18774b86d84aa867287bfb4f2394893b", |
| ) |
| use_repo(cipd, "docker-credential-luci_linux-amd64") |
| |
| cipd.download_http( |
| name = "git-credential-luci", |
| cipd_package = "infra/tools/luci/git-credential-luci/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "e8cd90523b63f3d08bd4090815a93f997a47f12c43e0723cca68f9247336ba59", |
| "linux-arm64": "f4521933dc56d1f25f6114be3c5bee64d6b523e127f1bcf4f7e82310deb1b66c", |
| "mac-amd64": "d675e3d205bac92ec500de76e69085c26555056097d922a7353e1233f2efd45f", |
| "mac-arm64": "f9a20f0ae2af8dbb70117de819dbd2914a1a56f350242701557bde1339fd08db", |
| "windows-amd64": "52ae1e6a30a242ffe536acbb005ea8c0f7bbd55aa22852e81c1206cbe78b1ada", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "git-credential-luci_linux-amd64") |
| |
| cipd.download_http( |
| name = "isolate", |
| cipd_package = "infra/tools/luci/isolate/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "015e3f3d97b0748cd6e5e62ef8dd4f1b2d944e9a8cb04e06283b3359a2c79819", |
| "linux-arm64": "7f6538a275c0c28e8e9cd593e6d6e976221b01238b7073311496604323c69fdf", |
| "mac-amd64": "64ad363aa708bf1297fa9ad5933cb3ee31652616352c64b2f2e364bbbdf7fb53", |
| "mac-arm64": "e992aa181e1ee711243983b8fcb5814618e0bec160ab38dff748bab5374468e3", |
| "windows-amd64": "5d560926ec59ad9dd65409e9fdd8fc8b7c57d5e5ecd3c4e957966279c0ba8ade", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "isolate_linux-amd64") |
| |
| cipd.download_http( |
| name = "lucicfg", |
| cipd_package = "infra/tools/luci/lucicfg/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "b8e6dbe35553e1c80210deae3a405db3c30efd30f59b061131e9245035bf48a7", |
| "linux-arm64": "84721ec076c4a397ee23ca4ecc0a304fea7840addeef27cc0c706c19471df278", |
| "mac-amd64": "09544ba62db09d51140dba8cf23d70131b28d8af08eb1c6face10cbafb48c3b5", |
| "mac-arm64": "79e3390b817b2c52d7d56e9340594c5e7a26214dafd11fe2a609d670c535ab00", |
| "windows-amd64": "43a65f0d5f9dc3d13e9844d3f818508f6db52919908f472b9983095aa5b50e21", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "lucicfg_linux-amd64") |
| |
| cipd.download_http( |
| name = "swarming", |
| cipd_package = "infra/tools/luci/swarming/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "56ce355186db7dbd99d4b7b47539fe29188e2f12dee73daf86a9e4538eb76f7d", |
| "linux-arm64": "96d3e9baf09564ae96e076520458e9e7b732aaa707dd3990562a5ea791b66e80", |
| "mac-amd64": "3d6ee5d0228f8588881d022f308007cc8c32e33cdc475b4a2a0fbaf1a776fc0f", |
| "mac-arm64": "6643b405cb24e9b1e7ab62ed56a75fc29e4020a6db6cefa77ad0783e892aed82", |
| "windows-amd64": "fe1a52648cc1fc78e82bb2ae40d2fbbb4748400ad8f9cada4366ca5b6e9f8993", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "swarming_linux-amd64") |
| |
| cipd.download_http( |
| name = "vpython3", |
| cipd_package = "infra/tools/luci/vpython3/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "7dcad20064d5c41484d48a6b4630ceba930be195538d0a4275afbc5cdda27169", |
| "linux-arm64": "0438bd4a536ea7c9b4026250e26714486d9d6893beda2932f6a49cc0c8023c8f", |
| "mac-amd64": "64936585607c5dd5426caac3b637e02f73ea5ddf1aee90991e8eade6d35a0538", |
| "mac-arm64": "3d13da483f827f4a47cccc30471c07f8c080617d4b6c9dc63668ee48bcbe8fce", |
| "windows-amd64": "492964f88cb7eb1082ca2a2c04bfb3f195b6dba77d6a80d738b98ba7f4b5aeb6", |
| }, |
| tag = "git_revision:03460cbcb7fcfe86272f3eabd45a8b0e7675f46b", |
| ) |
| use_repo(cipd, "vpython3_linux-amd64") |
| |
| cipd.download_http( |
| name = "gsutil", |
| cipd_package = "skia/bots/gsutil", |
| sha256 = "ce033513e57dae147ad2c87acb2c62e5766d8323e0f5b75de8c71cd64e390d9b", |
| tag = "version:6", |
| ) |
| use_repo(cipd, "gsutil") |
| |
| cipd.download_http( |
| name = "patch_linux_amd64", |
| cipd_package = "skia/bots/patch_linux_amd64", |
| sha256 = "757fd36db06f291f77a91aa314b855af449665a606d627ce16c36813464e1df6", |
| tag = "version:0", |
| ) |
| use_repo(cipd, "patch_linux_amd64") |
| |
| cipd.download_http( |
| name = "goldctl", |
| cipd_package = "skia/tools/goldctl/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "bbbddfc61a0db28b14b57518cf1d6010c96e1b4b9716d043e004883dbfd17590", |
| "linux-arm64": "63288c1a30ea2b336077f9d46524138068f5d9f47de484d5f5886d2e7ace5335", |
| "mac-amd64": "f83485467cbe1e7882cbbbe0b925c0e5122215582abb600345a19b4f0091bc70", |
| "mac-arm64": "4eab39d6405e8d2db3e7d2db743abefcfb1a2c693f3509d99bdb20357e74ed8e", |
| "windows-amd64": "5e1353a6502d6970717fc37487f1b508cf697a34a92a31d424c5a69c1c5a2da8", |
| }, |
| tag = "git_revision:03460cbcb7fcfe86272f3eabd45a8b0e7675f46b", |
| ) |
| use_repo(cipd, "goldctl_linux-amd64") |
| |
| cipd.download_http( |
| name = "cpython3", |
| cipd_package = "infra/3pp/tools/cpython3/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "b6ff54c182f7352fb7e1525e4b07272f4f48d956b55ea590af4ce33b7ebf83ae", |
| "linux-arm64": "e11598f41914dcb6def77356e963d0e711085adf417e4af341e6320bcde36f36", |
| "mac-amd64": "10844f9807e66c59d9b0a075b2702b2b6607d043705ffdf5b2bcdc8818107819", |
| "mac-arm64": "9cb8c4ee1a5ddd3c6efcbb28729ed58af650d0537165a3872d86ffd0cf14f6ab", |
| "windows-amd64": "87ec916762c4c4bc2570dd5f77f13721006178bd8d96784187ce79cb91255381", |
| }, |
| tag = "version:3@3.13.15.chromium.2", |
| ) |
| use_repo(cipd, "cpython3_linux-amd64") |
| |
| cipd.download_http( |
| name = "bazel_build_all", |
| cipd_package = "skia/tools/bazel_build_all/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "d1838eed38a821ed747a33a0ad2b6edb3af96bf90877228d0446ca79a6ceb555", |
| "linux-arm64": "4eabdf2988291f67894de262e2250f87e8082ed2eb6f33cdb9911a7df6269531", |
| "mac-amd64": "d6f161f66b9510983bbd0375a757a3d719d915eb5fd3a722c09d1d9feaf0e7d6", |
| "mac-arm64": "21ff1e93fffe517e9621332597733de402964f59ec360d625135e826cfef34a5", |
| "windows-amd64": "e3f8782e09a307ece2951c5f44a70b6aa3acf87972ffe07bc2f5b952cd506a85", |
| }, |
| tag = "git_revision:8d6937e749e2eb5b8f1449d0f67cba43a5795eed", |
| ) |
| use_repo(cipd, "bazel_build_all_linux-amd64") |
| |
| cipd.download_http( |
| name = "bazel_test_all", |
| cipd_package = "skia/tools/bazel_test_all/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "028b263915c273d30dfd24399e5e13cd24aca8e929ee9b1e7c9d756e2aadc8ad", |
| "linux-arm64": "0fcd14f2c8f03bc954ac933d8e0d029926f44cdee3e8f2c979ae4129909989f5", |
| "mac-amd64": "22a0c1833d6796ce0651b7b594c2d06022d92c40591341834730a0db2962214c", |
| "mac-arm64": "7e11836b34251c5b5a803fe74b4bd8601c795946bde9c084d9a43b175ca8d5ea", |
| "windows-amd64": "d8a26e6352e05a7b3a0d4a21707318dcca8c2a3a7f3ebef738bab078e1369e20", |
| }, |
| tag = "git_revision:8d6937e749e2eb5b8f1449d0f67cba43a5795eed", |
| ) |
| use_repo(cipd, "bazel_test_all_linux-amd64") |
| |
| cipd.download_http( |
| name = "command_wrapper", |
| cipd_package = "skia/tools/command_wrapper/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "01cb058896a38e8b97559e6eaacd043d671ab9849ae95df0710888d7bceeceb2", |
| "linux-arm64": "303bffffb8432b045fa3eb5e677eed6ac39e9d32371aabcfa44d5e4bd3a560b0", |
| "mac-amd64": "7aa7db33d3efa8133da920d61a48a0f5935c3d64df16550d6a39d9eaeff48e2a", |
| "mac-arm64": "4af8b69896276d5bff6ef6085370071e9f7bcdd54613ad441333dc61f652a70f", |
| "windows-amd64": "a7fe9a08de4bd7183e6ad1646d2e8dce360b701f385b68e4d5405b8171c03b85", |
| }, |
| tag = "git_revision:8d6937e749e2eb5b8f1449d0f67cba43a5795eed", |
| ) |
| use_repo(cipd, "command_wrapper_linux-amd64") |
| |
| cipd.download_http( |
| name = "presubmit", |
| cipd_package = "skia/tools/presubmit/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "7e14f144b21c46bcd9568df35ce16cf78a3cadf50e9f05ef07a7ed0c2cd84a2d", |
| "linux-arm64": "73842e6288d66a6999cecb8cf8f405fbe4998fdb230fdb2a52417b2086e63fb4", |
| "mac-amd64": "c128d93f6bc2729f55b7f766dbdd6ed2590cef01880fa41133966d2825de1e1e", |
| "mac-arm64": "0e3245bdb9c7cc4c94e39b3be7dac5a37f7a80f9bcb30daee3603c18536ecca2", |
| "windows-amd64": "577748547b2a63bae2b49cdf1b7eeea658d170d4191cc5426e3cd3f2591bcfa9", |
| }, |
| tag = "git_revision:8d6937e749e2eb5b8f1449d0f67cba43a5795eed", |
| ) |
| use_repo(cipd, "presubmit_linux-amd64") |
| |
| cipd.download_http( |
| name = "cipd", |
| cipd_package = "infra/tools/cipd/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "023b239896b922170a2d46330b059a47d63200dea8f64d80edf3094439f26846", |
| "linux-arm64": "8391f0baac64ac9522f376d209e4792edbb33661c2c1fd4e02c019377c86c450", |
| "mac-amd64": "28d009f4704047411f986c0d3cf5c3436dd4db803bc94114dfa9f87468c692d8", |
| "mac-arm64": "788b9e88731eafc83447fa276952a770e0fdb8251f7ddc6e20b0bd70a7bb9cb8", |
| "windows-amd64": "bc1436c9a5ec996715c2203ee77635b4bfcb6aab7c3009887814027bc0124c3f", |
| }, |
| tag = "git_revision:2de3d5d5b1e9c5e75f930c363904413000823425", |
| ) |
| use_repo(cipd, "cipd_linux-amd64") |
| |
| cipd.download_http( |
| name = "kitchen", |
| cipd_package = "infra/tools/luci/kitchen/${platform}", |
| platform_to_sha256 = { |
| "linux-amd64": "63c877bc0e1fdc601e92ac064987cf8104c4c37b3acb60e618211f96093f005c", |
| "linux-arm64": "01f9872223a2eb9b41865b2b23b94f99a987950f8b03f21bee0b7723d0d905b1", |
| "mac-amd64": "f541d3b809775b66c39693e15fc8fff110f722bf78ffc2ec0a637a374da1f9fa", |
| "mac-arm64": "71670a03e26dac2b7fe8324ef23263b0db0d054b32b1e611e3f01073226dbbc5", |
| "windows-amd64": "a6913b232a1243ac2114a06723d284fbab695aba82cf978fa8df2052b7750b32", |
| }, |
| tag = "git_revision:03460cbcb7fcfe86272f3eabd45a8b0e7675f46b", |
| ) |
| use_repo(cipd, "bazel_build_all_linux-arm64", "bazel_build_all_mac-amd64", "bazel_build_all_mac-arm64", "bazel_build_all_windows-amd64", "bazel_test_all_linux-arm64", "bazel_test_all_mac-amd64", "bazel_test_all_mac-arm64", "bazel_test_all_windows-amd64", "cipd_linux-arm64", "cipd_mac-amd64", "cipd_mac-arm64", "cipd_windows-amd64", "command_wrapper_linux-arm64", "command_wrapper_mac-amd64", "command_wrapper_mac-arm64", "command_wrapper_windows-amd64", "cpython3_linux-arm64", "cpython3_mac-amd64", "cpython3_mac-arm64", "cpython3_windows-amd64", "docker-credential-luci_linux-arm64", "docker-credential-luci_mac-amd64", "docker-credential-luci_mac-arm64", "docker-credential-luci_windows-amd64", "git-credential-luci_linux-arm64", "git-credential-luci_mac-amd64", "git-credential-luci_mac-arm64", "git-credential-luci_windows-amd64", "git_linux-arm64", "git_mac-amd64", "git_mac-arm64", "git_wrapper_linux-arm64", "git_wrapper_mac-amd64", "git_wrapper_mac-arm64", "git_wrapper_windows-amd64", "goldctl_linux-arm64", "goldctl_mac-amd64", "goldctl_mac-arm64", "goldctl_windows-amd64", "isolate_linux-arm64", "isolate_mac-amd64", "isolate_mac-arm64", "isolate_windows-amd64", "kitchen_linux-amd64", "kitchen_linux-arm64", "kitchen_mac-amd64", "kitchen_mac-arm64", "kitchen_windows-amd64", "luci-auth_linux-arm64", "luci-auth_mac-amd64", "luci-auth_mac-arm64", "luci-auth_windows-amd64", "lucicfg_linux-arm64", "lucicfg_mac-amd64", "lucicfg_mac-arm64", "lucicfg_windows-amd64", "presubmit_linux-arm64", "presubmit_mac-amd64", "presubmit_mac-arm64", "presubmit_windows-amd64", "swarming_linux-arm64", "swarming_mac-amd64", "swarming_mac-arm64", "swarming_windows-amd64", "vpython3_linux-arm64", "vpython3_mac-amd64", "vpython3_mac-arm64", "vpython3_windows-amd64") |
| |
| #################################################################################################### |
| # GCloud SDK. |
| #################################################################################################### |
| |
| http_archive( |
| name = "gcloud_linux", |
| build_file_content = """ |
| filegroup( |
| name = "all_files", |
| srcs = glob(["**/*"]), |
| visibility = ["//visibility:public"] |
| ) |
| """, |
| sha256 = "2ab0f75435a9ada0b7400500adbfbdfeceab2a6330c4043f68c543fc5c5c14da", |
| url = "https://storage.googleapis.com/cloud-sdk-release/google-cloud-cli-564.0.0-linux-x86_64.tar.gz", |
| ) |
| |
| #################################################################################################### |
| # protoc. |
| #################################################################################################### |
| |
| # The following archives were taken from |
| # https://github.com/protocolbuffers/protobuf/releases/tag/v21.12. |
| PROTOC_BUILD_FILE_CONTENT = """ |
| exports_files(["bin/protoc"], visibility = ["//visibility:public"]) |
| """ |
| |
| gcs_mirror.http_archive( |
| name = "protoc_linux_x64", |
| build_file_content = PROTOC_BUILD_FILE_CONTENT, |
| sha256 = "3a4c1e5f2516c639d3079b1586e703fc7bcfa2136d58bda24d1d54f949c315e8", |
| url = "https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip", |
| ) |
| use_repo(gcs_mirror, "protoc_linux_x64") |
| |
| gcs_mirror.http_archive( |
| name = "protoc_mac_x64", |
| build_file_content = PROTOC_BUILD_FILE_CONTENT, |
| sha256 = "9448ff40278504a7ae5139bb70c962acc78c32d8fc54b4890a55c14c68b9d10a", |
| url = "https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-x86_64.zip", |
| ) |
| use_repo(gcs_mirror, "protoc_mac_x64") |
| |
| #################################################################################################### |
| # pgadapter. |
| #################################################################################################### |
| http_archive( |
| name = "pgadapter", |
| build_file_content = """ |
| filegroup( |
| name = "all_files", |
| srcs = glob(["**/*"]), |
| visibility = ["//visibility:public"] |
| ) |
| """, |
| sha256 = "2dbb655dddc113eb14659e121839a9d3a5de34544ce88a1dd4dd88c23d436ae3", |
| urls = ["https://storage.googleapis.com/pgadapter-jar-releases/pgadapter-v0.47.1.tar.gz"], |
| ) |
| |
| #################################################################################################### |
| # CockroachDB (used as an "emulator" for tests). |
| #################################################################################################### |
| |
| gcs_mirror.http_archive( |
| name = "cockroachdb_linux", |
| build_file_content = """ |
| filegroup( |
| name = "all_files", |
| srcs = glob(["**/*"]), |
| visibility = ["//visibility:public"] |
| ) |
| """, |
| sha256 = "05293e76dfb6443790117b6c6c05b1152038b49c83bd4345589e15ced8717be3", |
| strip_prefix = "cockroach-v21.1.9.linux-amd64", |
| url = "https://binaries.cockroachdb.com/cockroach-v21.1.9.linux-amd64.tgz", |
| ) |
| use_repo(gcs_mirror, "cockroachdb_linux") |
| |
| #################################################################################################### |
| # bazel-toolchains rbe_configs_gen (prebuilt). |
| #################################################################################################### |
| |
| # Read the instructions in //bazel/rbe/generated/README.md before updating this repository. |
| http_archive( |
| name = "bazel_toolchains", |
| sha256 = "179ec02f809e86abf56356d8898c8bd74069f1bd7c56044050c2cd3d79d0e024", |
| strip_prefix = "bazel-toolchains-4.1.0", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz", |
| "https://github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz", |
| ], |
| ) |
| |
| rbe_exec_properties = use_extension("//bazel/external:rbe_exec_properties.bzl", "rbe_exec_properties") |
| rbe_exec_properties.setup(name = "exec_properties") |
| use_repo(rbe_exec_properties, "exec_properties") |
| |
| gcs_mirror.http_file( |
| name = "rbe_configs_gen_linux_amd64", |
| downloaded_file_path = "rbe_configs_gen", |
| executable = True, |
| no_extension = True, |
| sha256 = "1206e8a79b41cb22524f73afa4f4ee648478f46ef6990d78e7cc953665a1db89", |
| url = "https://github.com/bazelbuild/bazel-toolchains/releases/download/v5.1.2/rbe_configs_gen_linux_amd64", |
| ) |
| use_repo(gcs_mirror, "rbe_configs_gen_linux_amd64") |
| |
| #################################################################################################### |
| # Google Cloud SDK (needed for the Google Cloud Emulators). |
| #################################################################################################### |
| |
| google_cloud_sdk = use_extension("//bazel/external:google_cloud_sdk.bzl", "google_cloud_sdk") |
| google_cloud_sdk.download(name = "google_cloud_sdk") |
| use_repo(google_cloud_sdk, "google_cloud_sdk") |
| |
| #################################################################################################### |
| # Google Chrome and Fonts (needed for Karma and Puppeteer tests, respectively). |
| #################################################################################################### |
| |
| # TODO(borenet): we should be able to use this from rules_browsers. |
| google_chrome = use_extension("//bazel/external:google_chrome.bzl", "google_chrome") |
| google_chrome.download(name = "google_chrome") |
| use_repo(google_chrome, "google_chrome") |
| |
| #################################################################################################### |
| # Temporal repo, used to package DB schemas into the temporal-server image. |
| #################################################################################################### |
| |
| gcs_mirror.http_archive( |
| name = "com_github_temporal", |
| build_file_content = """ |
| load("@rules_pkg//:pkg.bzl", "pkg_tar") |
| |
| pkg_tar( |
| name = "schemas", |
| srcs = glob([ |
| "schema/postgresql/v96/**/*.sql", |
| "schema/postgresql/v96/**/*.json", |
| "schema/postgresql/v12/**/*.sql", |
| "schema/postgresql/v12/**/*.json", |
| ], allow_empty = True), |
| strip_prefix = "external/+gcs_mirror+com_github_temporal", |
| package_dir = "/etc/temporal", |
| visibility = ["//visibility:public"], |
| ) |
| """, |
| sha256 = "386b33f987bc930036d9e765dad5aa4fbd867ac2c132ce76795f071cd988215a", |
| strip_prefix = "./temporal-1.29.2", |
| url = "https://github.com/temporalio/temporal/archive/refs/tags/v1.29.2.tar.gz", |
| ) |
| use_repo(gcs_mirror, "com_github_temporal") |
| |
| gcs_mirror.http_file( |
| name = "swiftshader_libglesv2", |
| downloaded_file_path = "libGLESv2.so", |
| no_extension = True, |
| sha256 = "ad44026cb104b3283c738e7678b3dad5c834f551f47d855200ab3332e83e34a9", |
| url = "https://cdn.skia.org/swiftshader/libGLESv2.so", |
| ) |
| use_repo(gcs_mirror, "swiftshader_libglesv2") |
| |
| gcs_mirror.http_file( |
| name = "swiftshader_libegl", |
| downloaded_file_path = "libEGL.so", |
| no_extension = True, |
| sha256 = "5e0a2b662e532c53a1bd87397704507dfa1d31a53ab9d8ae37de1b9a01498ea6", |
| url = "https://cdn.skia.org/swiftshader/libEGL.so", |
| ) |
| use_repo(gcs_mirror, "swiftshader_libegl") |
| |
| ######### |
| # docsy # |
| ######### |
| |
| docsy = use_extension("//bazel/external/docsy:docsy.bzl", "docsy") |
| use_repo(docsy, "docsy") |
| |
| # Docsy is a Hugo module. |
| http_archive( |
| name = "hugo", |
| build_file_content = """ |
| filegroup( |
| name = "file", |
| srcs = ["hugo"], |
| visibility = ["//visibility:public"] |
| ) |
| """, |
| sha256 = "9f57338fc76f4ac363b0ac35f393294a26522bb179fb4c3f19855a68ab55476a", |
| url = "https://github.com/gohugoio/hugo/releases/download/v0.91.0/hugo_extended_0.91.0_Linux-64bit.tar.gz", |
| ) |