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
Where path refers to directory that conanfile.py is in
3. Observe failure
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/proxy.py", line 151, in should_update_reference
return any(name == "*" or reference.name == name for name in update)
TypeError: 'bool' object is not iterable
======== Computing dependency graph ========
No LSB modules are available.
Failed to generate dependency graph. Make sure the target package and its dependencies are built and available in local cache.
Traceback (most recent call last):
deps_graph = conan_api.graph.load_graph_consumer(path, None, None,
File "/usr/local/lib/python3.8/dist-packages/conan/api/subapi/graph.py", line 148, in load_graph_consumer
deps_graph = self.load_graph(root_node, profile_host=profile_host,
File "/usr/local/lib/python3.8/dist-packages/conan/api/subapi/graph.py", line 180, in load_graph
deps_graph = builder.load_graph(root_node, profile_host, profile_build, lockfile)
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/graph_builder.py", line 52, in load_graph
new_node = self._expand_require(require, node, dep_graph, profile_host,
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/graph_builder.py", line 92, in _expand_require
new_node = self._create_new_node(node, require, graph, profile_host, profile_build,
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/graph_builder.py", line 316, in _create_new_node
resolved = self._resolve_recipe(require.ref, graph_lock)
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/graph_builder.py", line 214, in _resolve_recipe
result = self._proxy.get_recipe(ref, self._remotes, self._update, self._check_update)
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/proxy.py", line 25, in get_recipe
resolved = self._get_recipe(ref, remotes, update, check_update)
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/proxy.py", line 52, in _get_recipe
if not (check_update or should_update_reference(reference, update)):
File "/usr/local/lib/python3.8/dist-packages/conans/client/graph/proxy.py", line 151, in should_update_reference
return any(name == "*" or reference.name == name for name in update)
TypeError: 'bool' object is not iterable
The text was updated successfully, but these errors were encountered:
You are seeing the the effects of #15652 in which we moved to allow for list of libraries to update with --update=ref, or all by passing --update
As a consequence of this, the API changed to have update be a list of strings. Note that the graph api is still not stabilized (https://docs.conan.io/2/reference/extensions/python_api/GraphAPI.html mentions it's subject to breaking changes), so while we try to avoid issues like this, we might have to do this for other APIs.
As for your issue, changing the argument to ["*"] will work to update all references in the graph - We will be bringing back support for the legacy bool in the next 2.2 release too
Environment details
Steps to reproduce
Where path refers to directory that conanfile.py is in
3. Observe failure
This failure does not occur in Conan version 2.0.17
This issue seems to have originated from this commit: 0bad0d1#diff-cb762ed907b992f9c0a13f229acd541bd559e84bd2a9dc7ce3c2b28e6febca57
Logs
Traceback:
The text was updated successfully, but these errors were encountered: