mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-22 04:59:34 +01:00
9cad6d1fb4
This reverts commit c7bf1f40180c861f4418898fd34aa1097438456c. GitOrigin-RevId: 2e57b7804ad7b55034b8d19da29e93b989539dd6
152 lines
7.2 KiB
Plaintext
152 lines
7.2 KiB
Plaintext
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
load("//bazel/platforms:local_config_platform.bzl", "setup_local_config_platform")
|
|
load("//bazel/toolchains:mongo_toolchain.bzl", "toolchain_download")
|
|
|
|
http_archive(
|
|
name = "bazel_clang_tidy",
|
|
# Note: strip_prefix is necessary to refer to the `@bazel_clang_tidy` package
|
|
strip_prefix = "bazel_clang_tidy-1.1",
|
|
# TODO(80396): Figure out how to get the sha256 of the release tarball
|
|
url = "https://github.com/mongodb-forks/bazel_clang_tidy/archive/refs/tags/v1.1.tar.gz",
|
|
)
|
|
|
|
setup_local_config_platform(name = "local_config_platform")
|
|
|
|
toolchain_download(name = "mongo_toolchain")
|
|
|
|
register_toolchains("@mongo_toolchain//:mongo_toolchain")
|
|
|
|
load("//bazel/toolchains:python_toolchain.bzl", "setup_mongo_python_toolchains")
|
|
|
|
[register_toolchains(toolchain) for toolchain in setup_mongo_python_toolchains()]
|
|
|
|
load("//bazel/coverity:coverity_toolchain.bzl", "coverity_toolchain")
|
|
|
|
coverity_toolchain(
|
|
name = "rules_coverity",
|
|
)
|
|
|
|
load("@rules_coverity//coverity:repositories.bzl", "rules_coverity_toolchains")
|
|
|
|
rules_coverity_toolchains()
|
|
|
|
http_archive(
|
|
name = "rules_python",
|
|
sha256 = "8c8fe44ef0a9afc256d1e75ad5f448bb59b81aba149b8958f02f7b3a98f5d9b4",
|
|
strip_prefix = "rules_python-0.13.0",
|
|
urls = [
|
|
# Implements retry by relisting each url multiple times to be used as a failover.
|
|
# TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries
|
|
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
|
|
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
|
|
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
|
|
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
|
|
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.13.0.tar.gz",
|
|
],
|
|
)
|
|
|
|
http_archive(
|
|
name = "platforms",
|
|
sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
|
|
urls = [
|
|
# Implements retry by relisting each url multiple times to be used as a failover.
|
|
# TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
|
|
],
|
|
)
|
|
|
|
# We need skylib to be able to use config_setting_group in rule_poetry below
|
|
# https://github.com/bazelbuild/bazel-skylib/blob/main/docs/selects_doc.md#selectsconfig_setting_group
|
|
http_archive(
|
|
name = "bazel_skylib",
|
|
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
|
|
urls = [
|
|
# Implements retry by relisting each url multiple times to be used as a failover.
|
|
# TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
|
|
],
|
|
)
|
|
|
|
# Poetry rules for managing Python dependencies
|
|
http_archive(
|
|
name = "rules_poetry",
|
|
sha256 = "59b6f654885059465880d641dbf45a1babad512c6ae7347b01ad03eebd615e0a",
|
|
strip_prefix = "rules_poetry-fc645faf7fb2e7f6c8fce968801e2a63dc1332bb",
|
|
urls = [
|
|
# Implements retry by relisting each url multiple times to be used as a failover.
|
|
# TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries
|
|
"https://github.com/mongodb-forks/rules_poetry/archive/fc645faf7fb2e7f6c8fce968801e2a63dc1332bb.tar.gz",
|
|
"https://github.com/mongodb-forks/rules_poetry/archive/fc645faf7fb2e7f6c8fce968801e2a63dc1332bb.tar.gz",
|
|
"https://github.com/mongodb-forks/rules_poetry/archive/fc645faf7fb2e7f6c8fce968801e2a63dc1332bb.tar.gz",
|
|
"https://github.com/mongodb-forks/rules_poetry/archive/fc645faf7fb2e7f6c8fce968801e2a63dc1332bb.tar.gz",
|
|
"https://github.com/mongodb-forks/rules_poetry/archive/fc645faf7fb2e7f6c8fce968801e2a63dc1332bb.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@rules_poetry//rules_poetry:defs.bzl", "poetry_deps")
|
|
|
|
poetry_deps()
|
|
|
|
load("@rules_poetry//rules_poetry:poetry.bzl", "poetry")
|
|
|
|
poetry(
|
|
name = "poetry",
|
|
lockfile = "//:poetry.lock",
|
|
pyproject = "//:pyproject.toml",
|
|
python_interpreter_target_default = "@py_host//:bin/python3",
|
|
python_interpreter_target_mac = "@py_host//:bin/python3",
|
|
python_interpreter_target_win = "@py_host//:python.exe",
|
|
)
|
|
|
|
http_archive(
|
|
name = "aspect_rules_js",
|
|
sha256 = "630a71aba66c4023a5b16ab3efafaeed8b1a2865ccd168a34611eb73876b3fc4",
|
|
strip_prefix = "rules_js-1.37.1",
|
|
urls = [
|
|
# Implements retry by relisting each url multiple times to be used as a failover.
|
|
# TODO(SERVER-86719): Re-implement http_archive to allow sleeping between retries
|
|
"https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
|
|
"https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
|
|
"https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
|
|
"https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
|
|
"https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
|
|
|
|
rules_js_dependencies()
|
|
|
|
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
|
|
|
|
nodejs_register_toolchains(
|
|
name = "nodejs",
|
|
node_version = DEFAULT_NODE_VERSION,
|
|
)
|
|
|
|
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
|
|
|
|
npm_translate_lock(
|
|
name = "npm",
|
|
pnpm_lock = "//:pnpm-lock.yaml",
|
|
verify_node_modules_ignored = "//:.bazelignore",
|
|
)
|
|
|
|
load("@npm//:repositories.bzl", "npm_repositories")
|
|
|
|
npm_repositories()
|