Fixes BEP path handling for rust analyzer specs (#4130) The rewrite of the Rust Analyzer auto-discovery pipeline (see #4075) introduced a bug for users who use `--experimental_convenience_symlinks=ignore` (i.e. have no bazel-out symlink in their workspace). `parse_output_group_paths` documentation suggests that output paths are always absolute https://github.com/bazelbuild/rules_rust/blob/dedf05304354aace6a76ae78030a9d69c74e37d4/tools/rust_analyzer/bep.rs#L107-L110 but that is not true for BEP events that trigger the fallback reconstruction path https://github.com/bazelbuild/rules_rust/blob/dedf05304354aace6a76ae78030a9d69c74e37d4/tools/rust_analyzer/bep.rs#L241-L243 This PR detects those cases and anchors those paths to the execution root, making them also absolute.
This repository provides rules for building Rust projects with Bazel.
The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.
Please refer to the full documentation.