This commit is contained in:
Christian Nieves
2023-07-03 18:23:23 -05:00
parent 8efe9263b1
commit 574a07495f
12 changed files with 148 additions and 40 deletions

23
BUILD
View File

@ -1,13 +1,20 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
package(
default_visibility = ["//visibility:public"],
)
go_binary(
name = "hello",
srcs = ["hello.go"],
deps = [
"//cmd",
]
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/squk/lotr
# gazelle:build_file_name BUILD
gazelle(name = "gazelle")
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
"-build_file_proto_mode=disable_global",
],
command = "update-repos",
)