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"], )