generating css from stylus fails on Windows #294
Labels
A-Infrastructure
Area: CI, Releases
C-bug
Category: A bug, incorrect or unintended behavior
E-Easy
Experience: Easy
Milestone
Hi,
I wanted to test my code fixing https://github.com/azerupi/mdBook/issues/293
And when testing the solution on Windows I have noticed that
cargo build --features=regenerate-css
will always fail (with or without my changes).It looks like Rust
Command
PATH finding is is broken rust-lang/rust#37519 or at least works differently than expected.Namely stylus is represented on Windows as stylus.cmd while
Command::spawn
will append ".exe" but does not test with other executable extensions like cmd, thusCommand::new("stylus")
will expand toCommand::new("stylus.exe")
instead ofCommand::new("stylus.cmd")
. Fortunately explicitly stating .This should be relatively easy to workaround with
#[cfg(windows)]
Nevertheless, the CI probably should be updated to test if stylus works too.
The text was updated successfully, but these errors were encountered: