I'm trying to use
conan export-pkg . hello/0.1@myuser/testing
command following the tutorial from https://docs.conan.io/en/latest/creating_packages/existing_binaries.html. But conan
keeps showing this error message:
ERROR: Specify the 'user' and the 'channel' or neither of them
.
It doesn't make any difference if I remove both user
and channel
.
I tried:
conan export-pkg . hello/0.1
conan export-pkg . hello
conan export-pkg .
And I got the same error every time. What is this error message about and how can be resolved? What am I doing wrong?
My conan
version is: 1.29.0
I've been able to work around this problem after submitting an issue to the Conan developers.
I had changed the storage.path
setting in my conan.conf
to a top-level folder of drive D:\
:
# File: <username>/.conan/conan.conf
# ...
[storage]
# (default) Relative path to a folder in C:\
#path = ./data
# Absolute path to a top-level folder in D:\
path = D:\conan_packages
After a while, it just stopped working.
I worked around this by setting storage.path
to a non top-level folder of D:\
, e.g.
[storage]
path = D:\conan\packages