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-03-23 13:33:55 -04:00
|
|
|
strip_prefix = "rules_go-ea3cc4f0778ba4bb35a682affc8e278551187fad",
|
|
|
|
sha256 = "9f0c386d233e7160cb752527c34654620cef1920a53617a2f1cca8d8edee5e8a",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-03-30 03:41:56 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/9f0c386d233e7160cb752527c34654620cef1920a53617a2f1cca8d8edee5e8a",
|
2023-03-23 13:33:55 -04:00
|
|
|
"https://github.com/bazelbuild/rules_go/archive/ea3cc4f0778ba4bb35a682affc8e278551187fad.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
|
|
|
)
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_gazelle",
|
2023-03-21 09:28:36 -04:00
|
|
|
strip_prefix = "bazel-gazelle-97a754c6e45848828b27152fa64ca5dd3003d832",
|
|
|
|
sha256 = "2591fe5c9ff639317c5144665f2b97f3e45dac7ebb0b9357f8ddb3533b60a16f",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-03-30 03:41:56 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/2591fe5c9ff639317c5144665f2b97f3e45dac7ebb0b9357f8ddb3533b60a16f",
|
2023-03-21 09:28:36 -04:00
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/archive/97a754c6e45848828b27152fa64ca5dd3003d832.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
|
|
|
)
|