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

Improving dependency path display for warnings and errors #1690

Merged
merged 3 commits into from
Sep 7, 2017

Conversation

emgarten
Copy link
Member

@emgarten emgarten commented Sep 7, 2017

Improving dependency path display for warnings and errors

This fixes how dependency paths are displayed. Currently they are written out as:
a (>= 1.0.0) -> b (>= 2.0.0)

However the ranges here are made up based on the resolved version and are not the actual nuspec dependency ranges. For locked ranges such as (= 2.0.0) the range (>= 2.0.0) is shown if 2.0.0 is found.

To improve this the path will now be displayed using the actual version, and in some cases the actual range for the last node displayed since this is where the conflict is.

GetPath:
a -> b 2.0.0 -> c 1.0.0

GetPathWithLastRange:
a -> b 2.0.0 -> c (>= 1.0.0)

Projects will no longer display a version or range, this information is not relevant since version ranges are never applied to projects and there can only be 1 instance of a project in the graph.

Fixes NuGet/Home#5861
Fixes NuGet/Home#5852
Fixes NuGet/Home#5824

Copy link
Contributor

@jainaashish jainaashish left a comment

Choose a reason for hiding this comment

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

Good work! :shipit:

/// </summary>
NU1607 = 1607,

/// <summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we leave comment here asking people to not create these?

Copy link
Member

@nkolev92 nkolev92 Sep 7, 2017

Choose a reason for hiding this comment

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

I'm with @mishra14 here, we should not delete these but rather mark them as deprecated.

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'll add comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants