Closed mortenmj closed 1 year ago
LGTM
Is there any documentation that needs to be updated in either repo?
(Either for people using this or maintaining it)
@sparkprime I am not aware of any documentation that goes into how to import jsonnet/go-jsonnet into a WORKSPACE, but I'd suggest adding similar documentation for using MODULE.bazel.
I think it could be a good idea to add a test that shows how this works. This could then also be used in the BCR presubmit.yml, which would add some confidence that we don't break things in the future. Here's an example of what that might look like: https://github.com/protocolbuffers/protobuf/tree/main/examples https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/protobuf/3.19.6/presubmit.yml
@sparkprime could we merge this?
This PR adds a MODULE.bazel file which allows other repositories to import this one as a bzlmod module. I don't know how Google handles publishing to the Bazel Central Registry, so I haven't made any attempt at that.
This is ready for review, but not for merging, pending https://github.com/google/jsonnet/pull/1083 which adds bzlmod support for jsonnet. Jsonnet would need to be added to the Bazel Central Registry for this PR to be merged, as bzlmod does not allow importing modules that use overrides (such as
git_override
used here).Update: Jsonnet has been merged into BCR, so this can move forward.