-
Notifications
You must be signed in to change notification settings - Fork 7
/
WORKSPACE
51 lines (35 loc) · 1.45 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
workspace(name = "scip_clang")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_bazel_lib",
sha256 = "2518c757715d4f5fc7cc7e0a68742dd1155eaafc78fb9196b8a18e13a738cea2",
strip_prefix = "bazel-lib-1.28.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.28.0/bazel-lib-v1.28.0.tar.gz",
)
load("//:fetch_deps.bzl", "fetch_direct_dependencies")
fetch_direct_dependencies()
# Setup the toolchain before setting up other dependencies
load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies")
bazel_toolchain_dependencies()
load("//:setup_llvm.bzl", "setup_llvm_toolchain")
setup_llvm_toolchain(name = "llvm_toolchain")
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
llvm_register_toolchains()
python_register_toolchains(
name = "python_3_10",
# Remove this once agents stop running tests as root
# https://github.com/sourcegraph/sourcegraph/issues/47943
ignore_root_user_error = True,
python_version = "3.10",
)
py_repositories()
load("@python_3_10//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "python_deps",
python_interpreter_target = interpreter,
requirements = "//tools:requirements_lock.txt",
)
load("//:setup_deps.bzl", "setup_dependencies")
setup_dependencies()