Skip to content
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

Allow upload --list to accept empty lists #14254

Merged

Conversation

n-morales
Copy link
Contributor

@n-morales n-morales commented Jul 8, 2023

Changelog: Fix: Using upload with the --list argument now permits empty recipe lists.
Docs: Omit

My approach was to still error on recipe patterns that are empty when not using a list. Therefore, I added two tests -- one to ensure that passing a --list argument that had no recipes in it was valid, and the second to ensure passing a non-matching pattern still errored with the "No recipes found matching pattern" message.

Fixes #14203

@CLAassistant
Copy link

CLAassistant commented Jul 8, 2023

CLA assistant check
All committers have signed the CLA.

@AbrilRBS AbrilRBS self-assigned this Jul 8, 2023
@AbrilRBS AbrilRBS added this to the 2.0.8 milestone Jul 8, 2023
Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I just have a small suggestion for a warning in case the list is empty.

Other than that, it looks great! Thanks a lot for your contribution :)

conan/cli/commands/upload.py Show resolved Hide resolved
@AbrilRBS
Copy link
Member

AbrilRBS commented Jul 9, 2023

Thanks a lot for taking the time to contribute this feature, we really appreciate it :)

@AbrilRBS AbrilRBS merged commit 568f1a1 into conan-io:release/2.0 Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] conan upload --list errors on empty recipe list
4 participants