go-jsonnet/examples/bazel/BUILD.bazel
John Bartholomew fb07a24f45 feat: add an example bazel module + go binary using the library
This is mostly so that I can add it as the test module to be used
in the bazel registry presubmit
2025-03-16 16:10:31 +00:00

19 lines
500 B
Python

load("@gazelle//:def.bzl", "gazelle")
load("@rules_go//go:def.bzl", "go_binary", "go_library")
gazelle(name = "gazelle")
go_library(
name = "use_go_jsonnet_lib",
srcs = ["use_go_jsonnet.go"],
importpath = "github.com/google/go-jsonnet/examples/bazel",
visibility = ["//visibility:private"],
deps = ["@com_github_google_go_jsonnet//:go_default_library"],
)
go_binary(
name = "use_go_jsonnet",
embed = [":use_go_jsonnet_lib"],
visibility = ["//visibility:public"],
)