Skip to content

Upgrade jsonnet to 0.21.0#237

Closed
ashtuchkin wants to merge 1 commit intobazel-contrib:masterfrom
ashtuchkin:patch-1
Closed

Upgrade jsonnet to 0.21.0#237
ashtuchkin wants to merge 1 commit intobazel-contrib:masterfrom
ashtuchkin:patch-1

Conversation

@ashtuchkin
Copy link

Both C++ and Go versions has released 0.21.0 a month ago, so maybe we can upgrade rules_jsonnet too?

Both C++ and Go versions has released 0.21.0 a month ago, so maybe we can upgrade rules_jsonnet too?
Copy link

@ccrome ccrome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woo! 0.21!

EdSchouten added a commit that referenced this pull request Jul 2, 2025
We now no longer need a nightly version of the Rust toolchain to build
jrsonnet. The latest stable version works perfectly fine. However, we do
still need a nightly version of the host tools to make bindeps work.

Because we now also set the host tools repo name properly, we no longer
need to juggle with Rust in examples/MODULE.bazel.

Fixes: #224 #225 #226 #228 #229 #230 #234 #235 #236 #237 #238
EdSchouten added a commit that referenced this pull request Jul 2, 2025
We now no longer need a nightly version of the Rust toolchain to build
jrsonnet. The latest stable version works perfectly fine. However, we do
still need a nightly version of the host tools to make bindeps work.

Because we now also set the host tools repo name properly, we no longer
need to juggle with Rust in examples/MODULE.bazel.

Fixes: #224 #225 #226 #228 #229 #230 #234 #235 #236 #237 #238
EdSchouten added a commit that referenced this pull request Jul 2, 2025
We now no longer need a nightly version of the Rust toolchain to build
jrsonnet. The latest stable version works perfectly fine. However, we do
still need a nightly version of the host tools to make bindeps work.

Because we now also set the host tools repo name properly, we no longer
need to juggle with Rust in examples/MODULE.bazel.

Fixes: #224 #225 #226 #228 #229 #230 #234 #235 #236 #237 #238
EdSchouten added a commit that referenced this pull request Jul 2, 2025
* Upgrade all dependencies

We now no longer need a nightly version of the Rust toolchain to build
jrsonnet. The latest stable version works perfectly fine. However, we do
still need a nightly version of the host tools to make bindeps work.

Because we now also set the host tools repo name properly, we no longer
need to juggle with Rust in examples/MODULE.bazel.

Fixes: #224 #225 #226 #228 #229 #230 #234 #235 #236 #237 #238

* Add a workaround for aspect_bazel_lib not wrapping platform labels

* Make import paths in jsonnet_to_json_test() work with modern Bazel

Modern Bazel no longer includes files in the runfiles directory using
the long path layout. We now only need to use short paths.
Unfortunately, Bazel lacks some proper APIs for generating those in
pieces, so we need to do some string substitution.
@EdSchouten
Copy link
Collaborator

Fixed in #239.

@EdSchouten EdSchouten closed this Jul 2, 2025
@ashtuchkin
Copy link
Author

Thank you @EdSchouten!

@ashtuchkin ashtuchkin deleted the patch-1 branch July 2, 2025 21:10
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.

3 participants