bazel: add Bazel v5.3.2, rules_go v0.35.0 with Go v1.19.2, Gazelle v0.28.0

This commit is contained in:
Richard Patel 2022-10-29 15:56:32 +02:00
parent ba4e9d4b0d
commit 0e68fe6661
2 changed files with 36 additions and 0 deletions

1
.bazelversion Normal file
View File

@ -0,0 +1 @@
5.3.2

35
WORKSPACE Normal file
View File

@ -0,0 +1,35 @@
workspace(name = "firedancer_radiance")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
################################################################################
# Go toolchain #
# Gazelle build file generator for Go modules and Protobuf #
################################################################################
http_archive(
name = "io_bazel_rules_go",
sha256 = "099a9fb96a376ccbbb7d291ed4ecbdfd42f6bc822ab77ae6f1b5cb9e914e94fa",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
],
)
http_archive(
name = "bazel_gazelle",
sha256 = "448e37e0dbf61d6fa8f00aaa12d191745e14f07c31cabfa731f0c8e8a4f41b97",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
go_rules_dependencies()
go_register_toolchains(version = "1.19.2")
gazelle_dependencies()