fork of https://github.com/sourcegraph/zoekt
1load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3http_archive(
4 name = "bazel_skylib",
5 sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
6 urls = [
7 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
8 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
9 ],
10)
11
12load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
13
14bazel_skylib_workspace()
15
16http_archive(
17 name = "aspect_bazel_lib",
18 sha256 = "2518c757715d4f5fc7cc7e0a68742dd1155eaafc78fb9196b8a18e13a738cea2",
19 strip_prefix = "bazel-lib-1.28.0",
20 url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.28.0/bazel-lib-v1.28.0.tar.gz",
21)
22
23http_archive(
24 name = "io_bazel_rules_go",
25 sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
26 urls = [
27 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
28 "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
29 ],
30)
31
32http_archive(
33 name = "bazel_gazelle",
34 sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
35 urls = [
36 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
37 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
38 ],
39)
40
41http_archive(
42 name = "com_google_protobuf",
43 sha256 = "6aff9834fd7c540875e1836967c8d14c6897e3785a2efac629f69860fb7834ff",
44 strip_prefix = "protobuf-3.15.0",
45 urls = [
46 "https://github.com/protocolbuffers/protobuf/archive/v3.15.0.tar.gz",
47 ],
48)
49
50# Go toolchain setup
51load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
52load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
53load("//:deps.bzl", "go_dependencies")
54
55# gazelle:repository_macro deps.bzl%go_dependencies
56go_dependencies()
57
58go_rules_dependencies()
59
60go_register_toolchains(
61 version = "1.19.6",
62)
63
64gazelle_dependencies()
65
66load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
67
68protobuf_deps()