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

fix lockfile-overrides-bug #16235

Merged
merged 12 commits into from
May 16, 2024

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented May 10, 2024

Changelog: Bugfix: Solve bug with overrides from lockfiles in case of diamond structures.
Docs: Omit

Close #16116

@@ -518,16 +519,6 @@ def build_require(self, ref, raise_if_duplicated=True, package_id_mode=None, vis
raise ConanException("Duplicated requirement: {}".format(ref))
self._requires[req] = req

def override(self, ref):
Copy link
Member Author

Choose a reason for hiding this comment

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

This was dead code.

@memsharded memsharded marked this pull request as ready for review May 14, 2024 09:08
@memsharded memsharded requested a review from RubenRBS May 14, 2024 09:08
@@ -160,7 +160,7 @@ def add(self, node):
if dep.dst.binary != BINARY_SKIP:
if dep.dst.ref == node.ref: # If the node is itself, then it is internal dep
install_pkg_ref.depends.append(dep.dst.pref.package_id)
else:
elif dep.dst.ref not in self.depends:
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a not related small bug fix.

Copy link
Member

@RubenRBS RubenRBS left a comment

Choose a reason for hiding this comment

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

Approving after being shown around the code with @memsharded

@czoido czoido merged commit 95da083 into conan-io:release/2.3 May 16, 2024
2 checks passed
@memsharded memsharded deleted the fix/lockfile_overrides_bug branch May 16, 2024 10:07
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

4 participants