Describe the bug
TMU the build-only value should filter out packages that are also available in the host context (unlike the build value) according to this comment, but it's not so for onnx package.
Maybe related to using <host_version>? https://github.com/conan-io/conan-center-index/blob/888d9055518d7203c0986f3cbdb2675de83cadc8/recipes/onnx/all/conanfile.py#L102
> conan version
version: 2.23.0
conan_path: /Users/kambala/dev/conan/conan-venv/bin/conan
python
version: 3.13.6
sys_version: 3.13.6 (main, Aug 6 2025, 13:05:20) [Clang 17.0.0 (clang-1700.0.13.3)]
sys_executable: /Users/kambala/dev/conan/conan-venv/bin/python3.13
is_frozen: False
architecture: x86_64
system
version: Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64
platform: macOS-15.7.2-x86_64-i386-64bit-Mach-O
system: Darwin
release: 24.6.0
cpu: i386
How to reproduce it
# assumes that onnx is already in the cache
conan graph info --requires onnx/1.16.2 -f json -b never -nr > graph.json
conan list --graph graph.json --graph-context=build-only -f json > pkglist.json
Expected: pkglist.json is empty
Actual: it contains protobuf and zlib