]> git.proxmox.com Git - cargo.git/commit
Auto merge of #9378 - ehuss:help-windows, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 19 Apr 2021 20:48:01 +0000 (20:48 +0000)
committerbors <bors@rust-lang.org>
Mon, 19 Apr 2021 20:48:01 +0000 (20:48 +0000)
commit905af549966f23a9288e9993a85d1249a5436556
tree22911e6ae77046a8e73cd567f39568f6db45b390
parent9ae6d41e332abcea79131c531dc4cd5e47545e25
parent1a3bb390d34a0a8dd712f932a0d3ee5c8a70500b
Auto merge of #9378 - ehuss:help-windows, r=alexcrichton

Handle man pages better on Windows.

If a user has `man` installed on Windows via msys/mingw/etc, then `cargo help <subcommand>` would fail with `No manual entry for C:\Users\User\AppData\Local\Temp\cargo-manlSKwTQ`.  This is because the cygwin universe does not handle windows-style paths and does not auto-translate in this scenario.

The solution here is to run the command from within the temp directory and use a relative path which *should* work on all platforms and environments. I tested on windows (powershell, cmd, and mingw), macos, and linux.

Fixes #9197