Skip to content

fix(rust): added name to the rust host_tools definition to avoid conf…#229

Closed
deblasis wants to merge 2 commits intobazel-contrib:masterfrom
deblasis:fix/rust_host_tools_conflict_with_rules_rust
Closed

fix(rust): added name to the rust host_tools definition to avoid conf…#229
deblasis wants to merge 2 commits intobazel-contrib:masterfrom
deblasis:fix/rust_host_tools_conflict_with_rules_rust

Conversation

@deblasis
Copy link

@deblasis deblasis commented Jan 15, 2025

This PR simply adds a name to the host_tools repo so that it won't conflict with the default one used within rules_rust

Important

This will work when rules_rust tags the next version (at the time of writing is 0.56.0) and after we bump it here.

It works on my setup since I am relying on a local_path_override to the latest HEAD, which includes the name attribute CI is currently complaining about.

I'll update this PR accordingly when the time comes

Fixes #228

…lict w/ rules_rust

Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
@EdSchouten
Copy link
Collaborator

Sorry for not merging this PR yet. I'm waiting for google/jsonnet#1178 to be resolved. Without a new release of jsonnet, CI for rules_jsonnet is completely busted.

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
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.

Repository Naming Conflict Between rules_jsonnet and rules_rust

2 participants