rules_jsonnet icon indicating copy to clipboard operation
rules_jsonnet copied to clipboard

WIP: Support sjsonnet as an alternative tool

Open Qinusty opened this issue 5 years ago • 1 comments

This adds the option to add --define jsonnet_port=scala to bazel args to enable the use of the sjsonnet interpreter instead of the default go-jsonnet.

Progress 18th Jun: Currently there are some incompatibilities with the sjsonnet tool causing it to fail the test suite.

@examples//:extvar_env_test                                              FAILED in 0.8s
    ERROR   .external/examples/extvar_env_test (0.0s)
@examples//:extvar_files_test                                            FAILED in 0.8s
    ERROR   .external/examples/extvar_files_test (0.0s)
@examples//:extvar_files_test_filegroup                                  FAILED in 0.8s
    ERROR   .external/examples/extvar_files_test_filegroup (0.0s)
@examples//:extvar_stamp_test                                            FAILED in 0.8s
    ERROR   .external/examples/extvar_stamp_test (0.0s)
@examples//:invalid_test                                                 FAILED in 1.0s
    ERROR   .external/examples/invalid_test (0.0s)
@examples//:strings_test                                                 FAILED in 0.8s
    ERROR   .external/examples/strings_test (0.0s)
Test cases: finished with 10 passing and 6 failing out of 16 test cases

INFO: Build completed, 6 tests FAILED, 7 total actions

Addresses https://github.com/bazelbuild/rules_jsonnet/issues/132

Qinusty avatar Jun 18 '20 16:06 Qinusty

Considering that this PR is still WIP according to the title and the tests still fail, I have marked this PR as draft.

@Qinusty Feel free to mark it ready for review once it's ready. Thanks!

EdSchouten avatar Apr 04 '24 19:04 EdSchouten