Closed Artalus closed 3 years ago
On a side note, it also seems that when no CONAN_STABLE_CHANNEL
is provided, CPT will substitute it for stable
. I am unsure if this needs any correction, since omitting username and channel have not yet become a widespread practice.
Also, with CONAN_STABLE_BRANCH_PATTERN=... + CONAN_STABLE_CHANNEL=_
one will also get an error saying
>> Branch detected
>> trassir-ci
>> Info
>> Redefined channel by CI branch matching with 'trassir-ci', setting CONAN_CHANNEL to '_'
Traceback (most recent call last):
...
conans.errors.InvalidNameException: Specify the 'user' and the 'channel' or neither of them
So I did some more digging and turns out the problem is not Linux-specific, but Docker-specific. The issue was CONAN_USERNAME
being discarded instead of forwarding to Docker. I made a PR fixing this.
Fixed by #522
Should be available on CPT 0.35.1
We attempt to use Github Actions + CPT in Conan-Center-Index fork. Most of recipes there use new convention with optional username and channel for packages, and it seems CPT is not quite ready for this:
if we specify
CONAN_REFERENCE
as simplylib/ver
, CPT on Linux fails with this:This seems to happen due to
channel
being set totesting
automatically in CPT innards.if we change it to
lib/ver@/
, CPT works fine on Linux, but will fail on Macif, however, we specify envvars
CONAN_USERNAME=_
andCONAN_CHANNEL=_
, then Linux fails, yet Mac worksThe current working solution for us is to specify
CONAN_REFERENCE
for Linux builds andCONAN_CHANNEL+_USERNAME
for Mac builds, but this is rather cumbersome.Environment Details