Skip to content

Commit fbae83a

Browse files
committed
fix: Fix standard flycheck command not being executed in the workspace it is being invoked for
1 parent 43fb956 commit fbae83a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/flycheck/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ impl FlycheckActor {
295295
} => {
296296
let mut cmd = Command::new(toolchain::cargo());
297297
cmd.arg(command);
298-
cmd.args(&["--workspace", "--message-format=json"]);
298+
cmd.current_dir(&self.root);
299+
cmd.args(&["--workspace", "--message-format=json", "--manifest-path"])
300+
.arg(self.root.join("Cargo.toml").as_os_str());
299301

300302
if let Some(target) = target_triple {
301303
cmd.args(&["--target", target.as_str()]);

0 commit comments

Comments
 (0)