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",
|
2024-02-19 12:20:08 -05:00
|
|
|
sha256 = "80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2024-02-19 12:20:08 -05:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.zip",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/80a98277ad1311dacd837f9b16db62887702e9f1d1c4c9f796d0121a46c8e184",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.46.0/rules_go-v0.46.0.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",
|
2024-01-15 09:26:15 -05:00
|
|
|
sha256 = "32938bda16e6700063035479063d9d24c60eda8d79fd4739563f50d331cb3209",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2024-01-15 09:26:15 -05:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/32938bda16e6700063035479063d9d24c60eda8d79fd4739563f50d331cb3209",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.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
|
|
|
)
|