panamax-rs / panamax

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

Regression in platform filtering for Unix #95

Closed nevsal closed 1 year ago

nevsal commented 1 year ago

In commit 89a2d64 the list of rustup-supported target-triples began to be fetched on each panamax sync. All Unix target-triples are now defined as the inverse of the hard-coded Windows ones.

While explicitly specifying Windows targets to limit the download does work, this change prevents filtering / limiting the Unix platforms being downloaded on sync, see relevant code section.

A simple fix is provided in a PR.