go-jsonnet/MODULE.bazel
John Bartholomew 5b5bcd566a release: prepare to release v0.21.0-rc1
This updates embedded version numbers, and also updates the
C++ jsonnet dependency to the published v0.21.0-rc1 (source release).
2025-02-22 23:18:43 +00:00

44 lines
1.6 KiB
Python

module(name = "jsonnet_go", version = "0.21.0-rc1")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# NB: update_cpp_jsonnet.sh looks for these.
CPP_JSONNET_SHA256 = "f104659d3feb42c871d40c5142577dff2cd3b2eda33ac9534f5f12b14643748d"
CPP_JSONNET_GITHASH = "2c3b51491a67ab7b24aecfc23fa3f73f68135129"
CPP_JSONNET_RELEASE_VERSION = "v0.21.0-rc1"
CPP_JSONNET_STRIP_PREFIX = (
"jsonnet-" + (
CPP_JSONNET_RELEASE_VERSION if CPP_JSONNET_RELEASE_VERSION else CPP_JSONNET_GITHASH
)
)
CPP_JSONNET_URL = (
"https://github.com/google/jsonnet/releases/download/%s/jsonnet-%s.tar.gz" % (
CPP_JSONNET_RELEASE_VERSION,
CPP_JSONNET_RELEASE_VERSION,
) if CPP_JSONNET_RELEASE_VERSION else "https://github.com/google/jsonnet/archive/%s.tar.gz" % CPP_JSONNET_GITHASH
)
# We don't use a normal bazel_dep reference for the cpp_jsonnet module,
# because we want to pin to the specific jsonnet commit (which might not
# even exactly match a released version).
http_archive(
name = "cpp_jsonnet",
sha256 = CPP_JSONNET_SHA256,
strip_prefix = CPP_JSONNET_STRIP_PREFIX,
urls = [CPP_JSONNET_URL],
)
bazel_dep(name = "gazelle", version = "0.41.0", repo_name = "bazel_gazelle")
bazel_dep(name = "rules_go", version = "0.48.0", repo_name = "io_bazel_rules_go")
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "@jsonnet_go//:go.mod")
use_repo(
go_deps,
"com_github_fatih_color",
"com_github_sergi_go_diff",
"io_k8s_sigs_yaml",
"org_golang_x_crypto",
)