Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/message alias overridden #3456

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Sep 1, 2018

Close #3353

Changelog: Fix: Removed bad duplicated messages about dependency overriding when using conan alias.

@ghost ghost assigned memsharded Sep 1, 2018
@ghost ghost added the stage: review label Sep 1, 2018
@memsharded memsharded added this to the 1.8 milestone Sep 1, 2018
@memsharded memsharded removed their assignment Sep 1, 2018
@@ -76,7 +78,7 @@ def _load_deps(self, node, down_reqs, dep_graph, public_deps, down_ref, down_opt
param down_ref: ConanFileReference of who is depending on current node for this expansion
"""
# basic node configuration
new_reqs, new_options = self._config_node(node, down_reqs, down_ref, down_options)
new_reqs, new_options = self._config_node(node, down_reqs, down_ref, down_options, aliased)

self._resolve_deps(node, aliased, update, remote_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If _config_node performs the alias substitution, then it is no longer needed in _resolve_deps.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is necessary, because _resolve_deps needs to check for alias AFTER the range has been resolved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the work done in _config_node does not require version ranges to be already resolved?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary, this applies to normal requires that are aliased.
However, you are right, I need to review this, maybe could be improved, it is complicated the deps resolution...
Please wait until I can check it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried a few things, and tests are broken. Leaving it as-is.

@ghost ghost assigned memsharded Sep 23, 2018
@memsharded memsharded force-pushed the feature/message_alias_overridden branch from 95c7c8c to c990abf Compare October 7, 2018 22:34
@lasote lasote merged commit bca4d24 into conan-io:develop Oct 8, 2018
@ghost ghost removed the stage: review label Oct 8, 2018
@memsharded memsharded deleted the feature/message_alias_overridden branch October 8, 2018 10:39
grisumbras pushed a commit to grisumbras/conan that referenced this pull request Dec 27, 2018
* resolve alias earlier so they are not overridden

* minor style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants