Skip to content

Move pinned Microsoft.Netcore.App down #2456

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

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Move pinned Microsoft.Netcore.App down #2456

merged 1 commit into from
Oct 4, 2019

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Oct 4, 2019

Move the pinned dependency on Microsoft.Netcore.App to the bottom of versions.details.xml to prevent it being picked for CoherentParentDependencies

CC @mmitche @dougbu - we think this will fix dotnet/efcore#18207

Move the pinned dependency on `Microsoft.Netcore.App` to the bottom of versions.details.xml to prevent it being picked for CoherentParentDependencies

CC @mmitche @dougbu - we think this will fix dotnet/efcore#18207
@wtgodbe wtgodbe requested a review from dougbu as a code owner October 4, 2019 21:37
@mmitche
Copy link
Member

mmitche commented Oct 4, 2019

I think the CoherentParent algo made need a tweak to make sense in these cases (follow "newest" path I think), but this may fix it for now.

@wtgodbe wtgodbe merged commit 87517af into release/3.0 Oct 4, 2019
@wtgodbe wtgodbe deleted the CPD-MNA branch October 4, 2019 21:40
@@ -74,6 +70,11 @@
<Uri>https://github.com/dotnet/core-setup</Uri>
<Sha>d34d1570bfdf669ed94b4c939b2f39a1650e2320</Sha>
</Dependency>
<!-- Keep this dependency at the bottom of ProductDependencies, else it will be picked as the parent for CoherentParentDependencies -->
Copy link

Choose a reason for hiding this comment

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

Question: The CoherentParentDependency attributes point CoreFx dependencies to Microsoft.NETCore.App.Runtime.win-x64. Why does a pinned Microsoft.NETCore.App.Ref dependency matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

The theory is that CPD traverses through versions.details.xml files top-down, looking for the first dependency from the repo it's tracking backwards towards. So since EFCore depends on a core-setup package through Extensions, DARC looks through Extensions for a core-setup package to use for dependency calculation. When the first one it finds is the pinned 3.0.0 one, it uses that. This PR is a hack/workaround until we improve the CPD algorithm.

@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants