1

add gazelle and rules_go

This commit is contained in:
Motiejus Jakštys 2021-06-07 22:24:26 +03:00 committed by Motiejus Jakštys
parent c96a2f4260
commit 5daa23e987
2 changed files with 30 additions and 1 deletions

View File

@ -1 +0,0 @@
4.0.0

View File

@ -2,6 +2,36 @@ workspace(
name = "zig-cc-bazel", name = "zig-cc-bazel",
) )
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
http_archive(
name = "io_bazel_rules_go",
sha256 = "7c10271940c6bce577d51a075ae77728964db285dac0a46614a7934dc34303e6",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.26.0/rules_go-v0.26.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.26.0/rules_go-v0.26.0.tar.gz",
],
)
http_archive(
name = "bazel_gazelle",
sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.16")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
load("//zig-toolchains:defs.bzl", load("//zig-toolchains:defs.bzl",
zig_register_all_toolchains = "register_all_toolchains", zig_register_all_toolchains = "register_all_toolchains",
zig_toolchain_repositories = "toolchain_repositories", zig_toolchain_repositories = "toolchain_repositories",