|
8 | 8 | from conan.internal.graph.graph import DepsGraph, Node, CONTEXT_HOST, \
|
9 | 9 | CONTEXT_BUILD, TransitiveRequirement, RECIPE_VIRTUAL, RECIPE_EDITABLE
|
10 | 10 | from conan.internal.graph.graph import RECIPE_PLATFORM
|
11 |
| -from conan.internal.graph.graph_error import GraphLoopError, GraphConflictError, GraphMissingError, GraphError |
| 11 | +from conan.internal.graph.graph_error import (GraphLoopError, GraphConflictError, GraphMissingError, |
| 12 | + GraphError) |
12 | 13 | from conan.internal.graph.profile_node_definer import initialize_conanfile_profile
|
13 | 14 | from conan.internal.graph.provides import check_graph_provides
|
14 | 15 | from conan.errors import ConanException
|
@@ -181,7 +182,8 @@ def _prepare_node(node, profile_host, profile_build, down_options, define_consum
|
181 | 182 | # basic node configuration: calling configure() and requirements()
|
182 | 183 | conanfile, ref = node.conanfile, node.ref
|
183 | 184 |
|
184 |
| - profile_options = profile_host.options if node.context == CONTEXT_HOST else profile_build.options |
| 185 | + profile_options = profile_host.options if node.context == CONTEXT_HOST \ |
| 186 | + else profile_build.options |
185 | 187 | assert isinstance(profile_options, Options), type(profile_options)
|
186 | 188 | run_configure_method(conanfile, down_options, profile_options, ref)
|
187 | 189 |
|
@@ -270,7 +272,10 @@ def _resolve_alias(self, node, require, alias, graph):
|
270 | 272 | graph.aliased[alias] = pointed_ref # Caching the alias
|
271 | 273 | new_req = Requirement(pointed_ref) # FIXME: Ugly temp creation just for alias check
|
272 | 274 | alias = new_req.alias
|
273 |
| - node.conanfile.output.warning("Requirement 'alias' is provided in Conan 2 mainly for compatibility and upgrade from Conan 1, but it is an undocumented and legacy feature. Please update to use standard versioning mechanisms", warn_tag="legacy") |
| 275 | + node.conanfile.output.warning("Requirement 'alias' is provided in Conan 2 mainly for " |
| 276 | + "compatibility and upgrade from Conan 1, but it is an " |
| 277 | + "undocumented and legacy feature. Please update to use " |
| 278 | + "standard versioning mechanisms", warn_tag="legacy") |
274 | 279 |
|
275 | 280 | def _resolve_recipe(self, ref, graph_lock):
|
276 | 281 | result = self._proxy.get_recipe(ref, self._remotes, self._update, self._check_update)
|
|
0 commit comments