diff options
author | Tatsuyuki Ishi <ishitatsuyuki@google.com> | 2024-04-11 10:00:08 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-04-12 14:55:51 +0000 |
commit | 51776b56e015507430321ef5365531aeba18316b (patch) | |
tree | 6ea652f8a9377fb16ab7f06d8cc690ea89ec9c6e | |
parent | 7da035ef581aadda122882a5c405e601fc27300d (diff) | |
download | toolchain-utils-51776b56e015507430321ef5365531aeba18316b.tar.gz |
rust-analyzer-chromiumos-wrapper: Update rust-analyzer in chroot to /usr/bin
Based on the ebuild (and observation in actual chroot) the rust-analyzer
binary should reside in /usr/bin.
BUG=b:333979840
TEST=cargo test
Change-Id: I6d3fc9115096084e16870840109d6a1ddf458ba5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5446202
Tested-by: Tatsuyuki Ishi <ishitatsuyuki@google.com>
Commit-Queue: George Burgess <gbiv@chromium.org>
Auto-Submit: Tatsuyuki Ishi <ishitatsuyuki@google.com>
Reviewed-by: Allen Webb <allenwebb@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
-rw-r--r-- | rust-analyzer-chromiumos-wrapper/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-analyzer-chromiumos-wrapper/src/main.rs b/rust-analyzer-chromiumos-wrapper/src/main.rs index 701a452b..b43ad5c3 100644 --- a/rust-analyzer-chromiumos-wrapper/src/main.rs +++ b/rust-analyzer-chromiumos-wrapper/src/main.rs @@ -21,7 +21,7 @@ use simplelog::{Config, LevelFilter, WriteLogger}; use serde_json::{from_slice, to_writer, Value}; -const CHROOT_SERVER_PATH: &str = "/usr/sbin/rust-analyzer"; +const CHROOT_SERVER_PATH: &str = "/usr/bin/rust-analyzer"; fn main() -> Result<()> { let args = env::args().skip(1); @@ -430,7 +430,7 @@ mod test { }"#, &[], r#"{ - "path": "/usr/sbin/rust-analyzer" + "path": "/usr/bin/rust-analyzer" }"#, ) } |