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-08-10 04:52:15 -04:00
|
|
|
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-08-10 04:52:15 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.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",
|
2023-08-10 04:52:15 -04:00
|
|
|
sha256 = "29218f8e0cebe583643cbf93cae6f971be8a2484cdcfa1e45057658df8d54002",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-08-10 04:52:15 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.32.0/bazel-gazelle-v0.32.0.tar.gz",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/29218f8e0cebe583643cbf93cae6f971be8a2484cdcfa1e45057658df8d54002",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.32.0/bazel-gazelle-v0.32.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
|
|
|
)
|