-
Notifications
You must be signed in to change notification settings - Fork 993
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
[question] conan upload --only-recipe
doesn't work with --list
#15169
Comments
The On the other hand, the This difference is because the expected default behavior and common user errors are different for different commands. |
Thanks @memsharded, that makes sense. We're using the following from https://docs.conan.io/2.0/examples/commands/pkglists.html#building-and-uploading-packages:
But in some cases we wanted to only upload the recipe that was built, but we couldn't find a way using the above. The conan upload docs made us confident that adding |
In our case, since we know the names of the package we want to upload, we can:
|
I think what you are looking for is the creating of
using
will give you a
yes, this might need some clarification, or maybe even some UX fix, raising an error. The |
That seems to emit all recipes, not just the one that was built. So it's not quite equivalent to |
I see. There is no concept of "recipes that were built", only the packages are built, so only In any case, is it really a problem? Conan avoids transfers completely if the revision already exist in the server, so uploading all graph dependencies recipes shouldn't be slow, as it will skip most of them. And recipes need to be in the server anyway, otherwise the graph and those packages will not be possible to be installed, because they will fail because of missing dependencies? |
Ha, good point! You're quite right, what we were attempting wasn't very sensible. Thanks :-). |
Any further feedback here? Can we close the issue? Thanks! |
Thanks, happy to close. Though as you noted above, the docs or UX should make it clear that --only-recipes is ignored if --list is used. |
Sure, I missed that part, lets fix that quickly. |
We have decided to make |
That's great, thanks! |
What is your question?
The docs for
conan upload
say:However when using the
--list
argument, if the package list contains binary packages then they are uploaded regardless.https://github.com/conan-io/conan/blob/release/2.0/conan/cli/commands/upload.py#L93 seems to confirm that
--only-recipe
is only used when converting from a pattern to a package list.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: