-
Notifications
You must be signed in to change notification settings - Fork 988
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
[bug] conan upload --list errors on empty recipe list #14203
Comments
Hi @n-morales, thanks a lot for your report and taking the time to diagnose the error! What you describe seems like a valid use case to me, if you would like to contribute a PR now that you have checked the code, we can discuss it there, but no worries if not :) |
I think that for automation purposes, allowing an empty list makes sense. So this could be changed, and relaxed for the So @n-morales would you like to contribute it as you as @RubenRBS suggested? Otherwise, please tell us and we will do it, no problem at all. Thanks! |
@RubenRBS @memsharded I could do it -- do you have suggestions for where I should be putting a unit test for it? |
Probably https://github.com/conan-io/conan/blob/release/2.0/conans/test/integration/command_v2/test_combined_pkglist_flows.py#L9 is the best, as it contains other |
Environment details
Operating System+version:
Manjaro Linux 23.0.0
Compiler+version:
N/A
Conan version:
Conan version 2.0.7
Python version:
Python 3.11.3
Steps to reproduce
conan list --graph install_graph.json --graph-binaries build --format json
){ "Local Cache": {} }
Note that I believe this should work since some automation workflows in CI may result in an empty list if a specific package was just cached and
--graph-binaries build
is set in the list command. I think the conditional check listed below should probably only error if the--list
argument was not provided.Logs
The text was updated successfully, but these errors were encountered: