-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathWORKSPACE
66 lines (51 loc) · 2.05 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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "ortools",
commit = "86d4c54", # tag v9.1
remote = "https://github.com/google/or-tools.git",
)
git_repository(
name = "com_google_absl",
commit = "278e0a0", # release 20210324.2
remote = "https://github.com/abseil/abseil-cpp.git",
)
git_repository(
name = "com_google_protobuf",
commit = "89b14b1", # release v3.18.0
remote = "https://github.com/protocolbuffers/protobuf.git",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
# Load dependencies needed to compile protobuf.
protobuf_deps()
# TODO(irfansharif): Capture swig and protoc{-gen-go} within bazel instead of
# asking contributors to download it themselves.
http_archive(
name = "io_bazel_rules_go",
sha256 = "8e968b5fcea1d2d64071872b12737bbb5514524ee5f0a4f54f5920266c261acb",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip",
],
)
git_repository(
name = "bazel_gazelle",
commit = "d038863ba2e096792c6bb6afca31f6514f1aeecd",
remote = "https://github.com/bazelbuild/bazel-gazelle",
)
# Load up our go dependencies (the ones listed under go.mod). The `DEPS.bzl`
# file is kept up to date using the `update-repos` Gazelle command (see
# README).
#
# gazelle:repository_macro DEPS.bzl%go_deps
load("//:DEPS.bzl", "go_deps")
# VERY IMPORTANT that we call into this function to prefer the pinned versions
# of our dependencies instead of any that may get pulled in through like
# `go_rules_dependencies`, `gazelle_dependencies`, etc.
go_deps()
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains(go_version = "1.16.5")
# Load gazelle dependencies.
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()