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 include flags calculation for transitively pinned centrally managed dependencies #4950

Conversation

marcin-krystianc
Copy link
Contributor

@marcin-krystianc marcin-krystianc commented Nov 28, 2022

Bug

Fixes: NuGet/Home#12274

Regression? Last working version: no

Description

When the include flags are calculated, only real (LibraryDependencyReferenceType.Direct) dependencies should be followed. The graph flattening algorithm should skip helper references (LibraryDependencyReferenceType.None and LibraryDependencyReferenceType.Transitive).

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@marcin-krystianc marcin-krystianc requested a review from a team as a code owner November 28, 2022 11:46
@ghost ghost added the Community PRs created by someone not in the NuGet team label Nov 28, 2022
@jeffkl jeffkl self-assigned this Nov 28, 2022
@marcin-krystianc
Copy link
Contributor Author

Next one is #4952

jeffkl
jeffkl previously approved these changes Nov 29, 2022
@marcin-krystianc marcin-krystianc dismissed stale reviews from nkolev92 and jeffkl via 2f09ddd November 30, 2022 10:18
@marcin-krystianc marcin-krystianc requested review from nkolev92 and jeffkl and removed request for nkolev92 November 30, 2022 10:19
Copy link
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the test feedback!

Great change.

@erdembayar
Copy link
Contributor

I just requeued the failing Apex test job on CI pipeline.

@jeffkl jeffkl merged commit 5818ca0 into NuGet:dev Dec 6, 2022
@marcin-krystianc marcin-krystianc deleted the marcink-20221124-FlattenDependencyTypesUnified branch December 6, 2022 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include flags flow incorrectly to transitively pinned centrally managed dependencies
4 participants