You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine for a user/channel like ci/testing or demo/testing.
But when trying to use this pattern for an empty user and channel (which usually defaults to _/_) this does not work. It gives a python error:
File "....\lib\site-packages\conans\model\ref.py", line 82, in check_valid_ref
if "*" in ref.name or "*" in ref.user or "*" in ref.channel:
TypeError: argument of type 'NoneType' is not iterable
The same is valid for conan search command: conan search "pkgname/*@demo/testing" works without errors even if there is no package found. conan search "pkgname/*@_/_" as well as conan search "pkgname/*@" will always issue the error given above.
How can I workaround this?
Other options I already tested:
I can try to upload pkgname/* but I do not want to include packages built with a given non-empty user/channel in that case.
It seems that I must provide the FULL pkgversion (developer version+number of commits+git hash in our case) for which I would have to check directories in the conan cache.
It does not help to specify the pkgversion only partly as * seems to work 'greedy':
Using conan 1.53 on various OS:
We are utilizing a CI script to upload multiple packages belonging to a pattern which works fine for a given non-empty user/channel:
This works fine for a user/channel like ci/testing or demo/testing.
But when trying to use this pattern for an empty user and channel (which usually defaults to
_/_
) this does not work. It gives a python error:The same is valid for conan search command:
conan search "pkgname/*@demo/testing"
works without errors even if there is no package found.conan search "pkgname/*@_/_"
as well asconan search "pkgname/*@"
will always issue the error given above.How can I workaround this?
Other options I already tested:
I can try to upload
pkgname/*
but I do not want to include packages built with a given non-empty user/channel in that case.It seems that I must provide the FULL pkgversion (developer version+number of commits+git hash in our case) for which I would have to check directories in the conan cache.
It does not help to specify the pkgversion only partly as
*
seems to work 'greedy':yields both versions but
yields only packages with non-empty user/channel.
This behaviour is somehow apart from expectations with working command like
The -q command requires the full pkg reference as well.
The text was updated successfully, but these errors were encountered: