Closed AbrilRBS closed 4 months ago
I might have missremembered and you're actually supposed to scope it with *:
. Still, the point stands than then it's not intuitive and we should check if we can do something about it
The only test that applies is c.run(f"list *:* -fs os=Windows -fo *:shared=False --format=json {r}")
, so I am not sure if the intent is not to scope options. Actually, the warnings were added with the intention to always scope options everywhere, including profiles, and also in the --filter-options
. The idea is that the filter will be what you would put in a profile, and get the same warning as if you use it in a profile.
The test doing it seems to work: https://github.com/conan-io/conan/blob/88d03589084167471262d004a183fea39985a616/test/integration/command_v2/list_test.py#L891, with the scope.
Describe the bug
When running
conan install
with the--filter-options
argument, you're supposed not to scope the option. But if you do so, you get a warning likewhich disappears if you use a scope, but then the filter does not work properly
How to reproduce it
No response