forked from sorbet/sorbet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
127 lines (94 loc) · 3.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
workspace(name = "com_stripe_ruby_typer")
load("//third_party:externals.bzl", "register_sorbet_dependencies")
register_sorbet_dependencies()
load("@com_grail_bazel_compdb//:deps.bzl", "bazel_compdb_deps")
bazel_compdb_deps()
load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies")
bazel_toolchain_dependencies()
load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain")
# Question: do we need the llvm mirrors?
#
# llvm_toolchain(
# name = "llvm_toolchain_12_0_0",
# absolute_paths = True,
# llvm_mirror_prefixes = [
# "https://sorbet-deps.s3-us-west-2.amazonaws.com/",
# "https://artifactory-content.stripe.build/artifactory/github-archives/llvm/llvm-project/releases/download/llvmorg-",
# "https://github.com/llvm/llvm-project/releases/download/llvmorg-",
# ],
# llvm_version = "12.0.0",
# )
llvm_toolchain(
name = "llvm_toolchain_12_0_0",
llvm_version = "12.0.0",
absolute_paths = True,
)
new_local_repository(
name = "macos-11.3-sdk",
path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk",
build_file_content = """
filegroup(
name = "sysroot",
srcs = glob(["usr/**"], exclude = ["usr/share/**"]),
visibility = ["//visibility:public"],
)
""",
)
load("@llvm_toolchain_12_0_0//:toolchains.bzl", "llvm_register_toolchains", "register_toolchain")
llvm_register_toolchains()
register_toolchains("//:clang-darwin-arm64")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
load("@rules_ragel//ragel:ragel.bzl", "ragel_register_toolchains")
ragel_register_toolchains()
load("@rules_m4//m4:m4.bzl", "m4_register_toolchains")
m4_register_toolchains()
load("@rules_bison//bison:bison.bzl", "bison_register_toolchains")
bison_register_toolchains(
# Clang 12+ introduced this flag. All versions of Bison at time of writing
# (up to 3.7.6) include code flagged by this warning.
extra_copts = ["-Wno-implicit-const-int-float-conversion"],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("//third_party/gems:rules.bzl", "gemfile_lock_deps")
gemfile_lock_deps(
name = "gems",
# TODO: figure out how to discover these labels during the loading phase,
# rather that listing them out explicitly. `glob` doesn't work here, so
# we'll need to do something special within the `gemfile_lock_deps`
# repository rule.
gemfile_locks = [
"//gems/sorbet/test/snapshot:{}/src/Gemfile.lock".format(test)
for test in [
"partial/bad-hash",
"partial/bad-t",
"partial/create-config",
"partial/explosive-object",
"partial/fake-object",
"partial/fake-rails",
"partial/local_gem",
"partial/non-utf-8-file",
"partial/real_singleton_class",
"partial/rspec-lots",
"partial/stack_master",
"partial/stupidedi",
"partial/typed-ignore",
"partial/webmock",
"total/empty",
"total/sorbet-runtime",
]
],
)
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
rust_repositories(
edition = "2018",
version = "1.51.0",
)
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
node_repositories()
BAZEL_VERSION = "5.0.0"
BAZEL_INSTALLER_VERSION_LINUX_X86_64_SHA = "42cfb37d2834d075996b9d02698674be7f322f0acd864b17c3191301329845f9"
BAZEL_INSTALLER_VERSION_DARWIN_X86_64_SHA = "f7e8d1eac85ec125c430f9553e35d522c057895262956201ccea8a27d87054cc"
BAZEL_INSTALLER_VERSION_DARWIN_ARM64_SHA = "785900dfadb14b20db4edc76019cd1c9048c4216ed8052c34e72816b7ed358e9"