#20361·conan

[bug] Explicit empty channel creates a different package reference from no channel

Author: r-slabsCreated Sep 29, 2026Updated Sep 29, 2026
Labelsstage: triaging

Describe the bug

Conan treats a package reference with no user/channel and a package reference with an explicitly empty user/channel (@_) as two different packages.

For example, these references are treated as distinct and can both exist in the local cache:

foobar/1.0.0
foobar/1.0.0@_

I would expect foobar/1.0.0@_ to be equivalent to foobar/1.0.0.

How to reproduce it

Create the following recipe:

from conan import ConanFile

class FoobarConan(ConanFile):
    name = "foobar"
    version = "1.0.0"

Create the package without a user/channel: conan export-pkg . Upload the package to a remote. Remove all packages from local cache.

Install both references:

conan install --requires foobar/1.0.0
conan install --requires foobar/1.0.0@_

List the packages in the local cache:

conan list "*"

The cache contains two separate recipes:

conan list "foobar#*:*#*"
Found 2 pkg/version recipes matching foobar in local cache
Local Cache
  foobar
    foobar/1.0.0
      revisions
        5f89c09d4a67ec0901a5c5ae9bd405fa (2026-09-29 00:31:51 UTC)
          packages
            da39a3ee5e6b4b0d3255bfef95601890afd80709
              revisions
                0ba8627bd47edc3a501e8f0eb9a79e5e (2026-09-29 00:31:51 UTC)
              info
    foobar/1.0.0@_
      revisions
        5f89c09d4a67ec0901a5c5ae9bd405fa (2026-09-29 00:31:51 UTC)
          packages
            da39a3ee5e6b4b0d3255bfef95601890afd80709
              revisions
                0ba8627bd47edc3a501e8f0eb9a79e5e (2026-09-29 00:31:51 UTC)
              info

The same can be extended to channel as well. Try installing using conan install --requires foobar/1.0.0@_/_