mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-22 04:59:34 +01:00
87be9f924c
GitOrigin-RevId: b1339aebd1d90d02e9649319a9ebcc74b17d96a4
38 lines
853 B
Python
38 lines
853 B
Python
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files([
|
|
"pyproject.toml",
|
|
"poetry.lock",
|
|
])
|
|
|
|
npm_link_all_packages(name = "node_modules")
|
|
|
|
alias(
|
|
name = "format",
|
|
actual = "//bazel/format",
|
|
)
|
|
|
|
alias(
|
|
name = "codeowners",
|
|
actual = "//buildscripts:codeowners",
|
|
)
|
|
|
|
# This rule makes it possible to set the clang-tidy configuration setting:
|
|
genrule(
|
|
name = "clang_tidy_config",
|
|
srcs = [
|
|
".clang-tidy.in",
|
|
],
|
|
outs = [".clang-tidy"],
|
|
|
|
# Note: we use sed to substitute the known good value `build/compiledb/mongo`; testing
|
|
# has confirmed that this is the correct value.
|
|
cmd = """
|
|
cp $(location .clang-tidy.in) $@ && \
|
|
sed -i 's|@MONGO_BUILD_DIR@|$(RULEDIR)/src/mongo|g' $@
|
|
""",
|
|
visibility = ["//visibility:public"],
|
|
)
|