bazel-contrib / rules_jsonnet

Jsonnet rules for Bazel
https://bazelbuild.github.io/rules_jsonnet/
Apache License 2.0
69 stars 73 forks source link

Maybe make the document more clear when using with bzlmod #195

Open mzhaom opened 1 month ago

mzhaom commented 1 month ago

I'm new to bzlmod, somehow this is what should be done to use this with bzlmod:

Add to MODEL.bazel:

bazel_dep(name = "rules_jsonnet", version = "0.6.0")

In BUILD.bazel

load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library", "jsonnet_to_json")

Note normally it was @io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl based on the name specified in the http_archive