panamax icon indicating copy to clipboard operation
panamax copied to clipboard

Sync over multiple vendor directories (over time)

Open flavienbwk opened this issue 1 year ago • 3 comments

Hello,

As far as I understand how to use this repo, it is possible to sync panamax 1 time for the whole crates.io registry :

# This takes a long time but gathers everything at a specific date
panamax sync /mirror

It is also possible to sync only a vendor directory :

# Fast as a few crates are downloaded
panamax sync /mirror /my/path/to/vendor

I'm currently on the second case, I now want to push another vendor directory to panamax. So I do :

# Fast as a few crates are downloaded
panamax sync /mirror /other/path/to/vendor

I want to add multiple vendor directories because I have projects using different versions for a crate and the full sync is too heavy for my use case.

But panamax returns the following result and does not update anything :

Syncing Rustup repositories...
[1/5] Syncing rustup-init files... █████2/2 [00:00:00 / 00:00:00]
[2/5] Syncing latest stable...     █████ 25/25 [00:00:02 / 00:00:00]
[3/5] Skipping syncing beta.
[4/5] Skipping syncing nightly.
[5/5] Cleaning old files...    █████ 0/0 [00:00:00 / 00:00:00]
Syncing Rustup repositories complete!
Syncing Crates repositories...
[1/3] Fetching crates.io-index... █████ [00:00:00]
[2/3] Syncing crates files...   █████2/2 [00:00:01 / 00:00:00]
[3/3] Syncing config...           
Syncing Crates repositories complete!

Can I do what I intend to do (add another vendor dir) with Panamax ? If not, why ? What's the alternative ?

Thank you,

flavienbwk avatar Mar 08 '23 16:03 flavienbwk