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

[Backport release-1.8] Use package revision name to identify self when adding or removing from Lock #3308

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

github-actions[bot]
Copy link

Description

Backport of #3304 to release-1.8.

Passing NodeFns proved to not be a very ergonomic API to work with and
most places where FindIndex was used could be replaced by either working
with the Nodes directly or calling NodeExists. The index of a Node
should not be the responsibility of the DAG, which provides an interface
into a graph.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit c5f0761)
Updates the package revision dependency manager to use the package
revision name to identify self in the Lock. This prevents the case of
one package revision attempting to remove itself from the Lock while
another is adding with the same source. Source is still used as an
identifier in the DAG as it dictates whether we determine a dependency
is present or not.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit cdcf68f)
Updates the package revision dependency manager unit tests to
accommodate using package revision name to identify self in the Lock.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit 6ef237a)
Updates DAG unit tests to remove unused variable.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit 2f90106)
@hasheddan hasheddan merged commit 26107ad into release-1.8 Sep 13, 2022
@negz negz deleted the backport-3304-to-release-1.8 branch February 1, 2024 19:41
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

1 participant