2023-01-30 11:15:59 -05:00
|
|
|
"""Go toolchain dependencies for Bazel.
|
|
|
|
|
|
|
|
Defines hermetic go toolchains and rules to build and test go code.
|
|
|
|
Gazelle is a build file generator for Bazel projects written in Go.
|
|
|
|
"""
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
def go_deps():
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
2023-07-10 04:58:51 -04:00
|
|
|
sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-07-10 04:58:51 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
|
2023-01-30 11:15:59 -05:00
|
|
|
],
|
2023-07-10 04:58:51 -04:00
|
|
|
type = "zip",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_gazelle",
|
2023-06-13 12:18:50 -04:00
|
|
|
sha256 = "b8b6d75de6e4bf7c41b7737b183523085f56283f6db929b86c5e7e1f09cf59c9",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-06-13 12:18:50 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.1/bazel-gazelle-v0.31.1.tar.gz",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/b8b6d75de6e4bf7c41b7737b183523085f56283f6db929b86c5e7e1f09cf59c9",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.1/bazel-gazelle-v0.31.1.tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
],
|
2023-03-30 03:41:56 -04:00
|
|
|
type = "tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|