|
| 1 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 | + |
| 3 | +http_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 | + |
| 12 | +load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| 13 | + |
| 14 | +bazel_skylib_workspace() |
| 15 | + |
| 16 | +http_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 | + |
| 23 | +http_archive( |
| 24 | + name = "io_bazel_rules_go", |
| 25 | + sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f", |
| 26 | + urls = [ |
| 27 | + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip", |
| 28 | + "https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip", |
| 29 | + ], |
| 30 | +) |
| 31 | + |
| 32 | +http_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 | + |
| 41 | +http_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 |
| 51 | +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 52 | +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| 53 | +load("//:deps.bzl", "go_dependencies") |
| 54 | + |
| 55 | +# gazelle:repository_macro deps.bzl%go_dependencies |
| 56 | +go_dependencies() |
| 57 | + |
| 58 | +go_rules_dependencies() |
| 59 | + |
| 60 | +go_register_toolchains( |
| 61 | + version = "1.20.3", |
| 62 | +) |
| 63 | + |
| 64 | +gazelle_dependencies() |
| 65 | + |
| 66 | +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 67 | + |
| 68 | +protobuf_deps() |
0 commit comments