panamax-rs / panamax

Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
Apache License 2.0
418 stars 42 forks source link

Mirroring Vendored Crates #127

Open KeepSummerSaf3 opened 5 months ago

KeepSummerSaf3 commented 5 months ago

Args for #71 appear to be inconsistent with the readme documentation regarding synchronization of vendored crates. Maybe I am missing something.


Sync Select Dependencies Optionally, panamax can be told to only grab crates needed to build a singular project. cargo vendor is used to create a folder with all needed dependencies, then a panamax command can parse the created directory and only grab those crates and versions.

Only grab crates needed for panamax, as an example

$ cargo vendor
$ panamax sync my-mirror vendor

Non-working option:

$panamax sync offline-mirror vendor
error: unexpected argument 'vendor' found

Usage: panamax sync [OPTIONS] <PATH>

Working option:

$panamax sync --vendor-path ./vendor offline-mirror
Syncing Rustup repositories...
k3d3 commented 1 month ago

image

The documentation appears to be correct, as far as I can tell. Where did you get your copy of panamax from?