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-31 04:43:07 -04:00
|
|
|
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-03-31 04:43:07 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
|
2023-01-30 11:15:59 -05:00
|
|
|
],
|
2023-03-31 04:43:07 -04:00
|
|
|
type = "zip",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_gazelle",
|
2023-03-31 04:43:07 -04:00
|
|
|
sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-03-31 04:43:07 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.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
|
|
|
)
|