You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
645 B

load("@io_bazel_rules_go//go:def.bzl", "go_binary","go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
# adding rule to update deps
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
go_library(
name = "basic-gazelle_lib",
srcs = ["hello.go"],
importpath = "hello",
visibility = ["//visibility:private"],
deps = [
"//lib",
],
)
go_binary(
name = "hello",
embed = [":basic-gazelle_lib"],
visibility = ["//visibility:public"],
)