8000 [feature] Support restoring multiple cache archives at once · Issue #18321 · conan-io/conan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[feature] Support restoring multiple cache archives at once #18321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
mrjoel opened this issue May 16, 2025 · 1 comment
Open
1 task done

[feature] Support restoring multiple cache archives at once #18321

mrjoel opened this issue May 16, 2025 · 1 comment
Assignees

Comments

@mrjoel
Copy link
Contributor
mrjoel commented May 16, 2025

What is your suggestion?

It would be convenient for conan cache restore to accept multiple archive files to restore in a single execution.

Instead of having to do

conan cache restore my-archive-Release.tar.gz
conan cache restore my-archive-Debug.tar.gz

it would be nice to be able to just do

conan cache restore my-archive-Release.tar.gz my-archive-Debug.tar.gz

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this May 19, 2025
@memsharded
Copy link
Member

Thanks for your suggestion @mrjoel

I am not a great fan of multiple positional arguments of the same thing, this is why for example the conan graph build-order-merge contains multiple --file=file1 --file=file2 .. entries as arguments.

But forcing this now in conan cache restore would be breaking, in theory it is allowed, as it is still experimental, but I am not sure if it is worth breaking existing users for the value. So maybe in this case we can allow multiple positional arguments, lets consider it.

In any case, could you please elaborate? For CI cases, it sounds pointless, as it is automatic, it is the same to iterate over the command execution or over the arguments (and it can be beneficial to iterate over the command execution, as having better error diagnostics if something goes wrong). And for the developer UX, this sounds a very small UX gain too, isn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0