Closed dstar4138 closed 3 years ago
That looks like a relatively easy fix, I'll try and do that soon. The feature request is a bit more work but it sounds quite doable and pretty useful, I'll look into it but no ETA :smiley:
No stress mate! Thank you so much for your work on this!
Oh, and meant to reference: https://docs.rs/cargo_metadata/0.11.2/cargo_metadata/struct.Metadata.html
It should let you get the target directory without much effort, and give you the value of:
cargo metadata --format-version=1 | jq '.target_directory'
I wish it didn't take me this long to get to it, but the bug should now be fixed in master :tada: The feature request needs a bit of thought, so I've opened #31 to track this one.
Describe the bug When the build-cache is changed from default [1], running
cargo docset
fails with an I/O read error.[1] - https://doc.rust-lang.org/cargo/guide/build-cache.html
To Reproduce Steps to reproduce the behavior:
I use a shared cache as described in [1] above, a simple test is to override with an environment variable:
Expected behavior Expected the docset directory to be generated within
$CARGO_TARGET_DIR/docset
.Screenshots Not-Applicable.
Desktop (please complete the following information):
Ubuntu 20.04.1 LTS
Zeal
zeal 0.6.1
Additional context Add any other context about the problem here.