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

conan remove pkg-lists support #14082

Merged
merged 4 commits into from
Jun 19, 2023

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Jun 13, 2023

Changelog: Feature: Allow conan remove --list=pkglist to remove package-lists.
Changelog: Feature: Output for conan remove --format both text (summary of deleted things) and json.
Docs: conan-io/docs#3270

Need it as pre-condition for LRU functionality in #14054

@memsharded memsharded added this to the 2.0.7 milestone Jun 13, 2023
@memsharded memsharded requested a review from AbrilRBS June 13, 2023 15:36
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.

Should we be testing the new argument in small tests too? I know there's one describing a use case for download + upload, but then this one would seem to be missing

if args.list:
listfile = make_abs_path(args.list)
multi_package_list = MultiPackagesList.load(listfile)
package_list = multi_package_list["Local Cache" if not remote else remote.name]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe time to move "Local Cache" to some kind of constant? (Not on this PR) It's in the codebase a few times by now

@AbrilRBS AbrilRBS changed the title remove pkg-lists conan remove pkg-lists Jun 13, 2023
@AbrilRBS AbrilRBS changed the title conan remove pkg-lists conan remove pkg-lists support Jun 13, 2023
@memsharded
Copy link
Member Author

Should we be testing the new argument in small tests too? I know there's one describing a use case for download + upload, but then this one would seem to be missing

Yes, definitely. I will add tests. I was trying to make sure things didn't break and interface looked good, and I forgot to finally add them.

@czoido czoido merged commit bf4ea4e into conan-io:release/2.0 Jun 19, 2023
@memsharded memsharded deleted the feature/remove_pkg_lists branch June 19, 2023 06:55
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.

3 participants