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
Execute conan install for an arbitrary consumer recipe with --channel option:
conan install . --channel xxx
It will break with AssertionError. Of course, it doesn't make much sense to specify --channel for a consumer recipe but I believe it should be handled correctly. Another problem is that the exception info goes to stdout instead of stderr. So for
there is no visible error on the console. Can you also fix that?
Logs
conan install . --channel xxx
...
Traceback (most recent call last):
File "c:\work\conan-2.0\lib\site-packages\conan\cli\cli.py", line 272, in main
cli.run(args)
File "c:\work\conan-2.0\lib\site-packages\conan\cli\cli.py", line 172, in run
command.run(self._conan_api, args[0][1:])
File "c:\work\conan-2.0\lib\site-packages\conan\cli\command.py", line 125, in run
info = self._method(conan_api, parser, *args)
File "c:\work\conan-2.0\lib\site-packages\conan\cli\commands\install.py", line 65, in install
deps_graph = conan_api.graph.load_graph_consumer(path, args.name, args.version,
File "c:\work\conan-2.0\lib\site-packages\conan\api\subapi\graph.py", line 132, in load_graph_consumer
root_node = self._load_root_consumer_conanfile(path, profile_host, profile_build,
File "c:\work\conan-2.0\lib\site-packages\conan\api\subapi\graph.py", line 24, in _load_root_consumer_conanfile
conanfile = app.loader.load_consumer(path,
File "c:\work\conan-2.0\lib\site-packages\conans\client\loader.py", line 166, in load_consumer
if str(ref):
File "c:\work\conan-2.0\lib\site-packages\conans\model\recipe_ref.py", line 62, in __str__
assert self.user
AssertionError
The text was updated successfully, but these errors were encountered:
this is a bug, because every stacktrace is a bug, and it should be improved with a clear error message of what is happening.
The underlying cause is that creating packages without user but with channel is not allowed, and this will keep the same. The above should work if specified --user or not specified --channel
@memsharded
A stacktrace on obviously incorrect options is not actually a serious problem, but what it does go to stdout instead of stderr is. (IMHO). Could you fix it as well?
Environment details
Steps to reproduce
Execute
conan install
for an arbitrary consumer recipe with--channel option
:It will break with AssertionError. Of course, it doesn't make much sense to specify
--channel
for a consumer recipe but I believe it should be handled correctly. Another problem is that the exception info goes to stdout instead of stderr. So forthere is no visible error on the console. Can you also fix that?
Logs
The text was updated successfully, but these errors were encountered: