Skip to content

Conversation

@johnbartholomew
Copy link
Collaborator

This starts with the commits from #1189, and adds commits to remove the Bazel module dependency on rules_jsonnet.

Although rules_jsonnet is the appropriate Bazel module for external Jsonnet users to use for their Jsonnet build actions, using it internally within the jsonnet repo itself is actually a little difficult as it creates a mutually recursive dependency.

Since the only thing it's being used for is the jsonnet_json_test rule, and we have scripts to runs such tests anyway, it's relatively easy to define our own jsonnet_json_golden_test rule and avoid the recursive dependency.

Our current import of rules_jsonnet points to a very old commit which is no longer compatible with current versions of Bazel, so my first attempt here was to just upgrate to the most recent rules_jsonnet release (0.6.0), however I then ran into difficulties of rules_jsonnet wanting to pull in jsonnet itself (which I don't want because the tests need to test the jsonnet binary built from the local workspace).

mortenmj and others added 6 commits December 9, 2024 23:44
…rules_jsonnet

Although rules_jsonnet is the appropriate Bazel module for external
Jsonnet users to use for their Jsonnet build actions, using it
internally within the jsonnet repo itself is actually a little difficult
as it creates a mutually recursive dependency.

Since the only thing it's being used for is the jsonnet_json_test rule,
and we have scripts to runs such tests anyway, it's relatively easy to
define our own jsonnet_json_golden_test rule and avoid the recursive
dependency.
@johnbartholomew johnbartholomew merged commit 6c31c58 into google:master Jan 18, 2025
6 checks passed
@johnbartholomew johnbartholomew deleted the bazel_rules_upgrade branch January 18, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants