-
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 remove <ref> -p <query>
removes all packages and recipe instead of packages matching query
#13595
Comments
Hi @SpaceIm, thanks for the report. I can reproduce your issue, in which
is not what's happening. Note that you can work around this by calling We'll need to figure out if the docs or the code is wrong, and by looking at the implementation with a quick glance, it seems to me like the help message is the misleading one, but not sure if it's the right thing to do. Will add it as a look-into to discuss with the team |
It's worth noting that it may fail (I guess if at least one recipe in cache has no compiler settings, or maybe if compiler is removed from package id):
(And same error with |
After checking with the team, we came to the conclusion that both the comments and the code were wrong :) You now need to pass a package pattern (ie I've also fixed the ERROR you were seeing, thanks for reporting :) Closed by #13601 |
Thanks |
(I forgot to actually push the fix for the ERROR 🤦, it will still fail for now, give me a minute) |
Environment details
Steps to reproduce
Install & build several recipes with clang & gcc
call
conan remove "*" -p "compiler=clang" -c
. All packages AND recipes themselves are removed, instead of removing only clang packages.Example:
conan list "zlib/*:*#*"
call
conan remove "zlib" -p "compiler=clang" -c
call
conan list "zlib/*:*#*"
again after above command:This behavior is clearly not my understanding of conan remove -h:
Logs
No response
The text was updated successfully, but these errors were encountered: