yesod-mirror/tools/jsonnet_compiler/BUILD.bazel
Copybara 8157b39ea4
Some checks failed
CI / build (push) Failing after 12s
Project import generated by Copybara.
GitOrigin-RevId: 6370f6ea785709295b6abcf9c60717cacf3ac432
2026-01-20 21:26:21 +00:00

33 lines
902 B
Text

load("@rules_go//go:def.bzl", "go_binary", "go_library")
load("@rules_jsonnet//jsonnet:toolchain.bzl", "jsonnet_toolchain")
go_binary(
name = "jsonnet_compiler",
embed = [":jsonnet_compiler_lib"],
visibility = ["//visibility:public"],
)
go_library(
name = "jsonnet_compiler_lib",
srcs = ["main.go"],
importpath = "forgejo.csbx.dev/acmcarther/yesod/tools/jsonnet_compiler",
visibility = ["//visibility:private"],
deps = [
"//tools/jsonnet_compiler/helm_support",
"@jsonnet_go//:go_default_library",
],
)
jsonnet_toolchain(
name = "helm_jsonnet",
compiler = ":jsonnet_compiler",
create_directory_flags = ["-c"],
manifest_file_support = True,
)
toolchain(
name = "helm_jsonnet_toolchain",
toolchain = ":helm_jsonnet",
toolchain_type = "@rules_jsonnet//jsonnet:toolchain_type",
visibility = ["//visibility:public"],
)