-
Notifications
You must be signed in to change notification settings - Fork 527
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
Handle transient dependencies better in pack command #649
Conversation
let dep = | ||
match Map.tryFind np.Name dependencies.DirectDependencies with | ||
| Some direct -> direct | ||
// If it's a transiant dependency set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :)
which case are we fixing here? |
This fixes a "not found" exception when a package listed in It came up for me in a solution where one project relied on package A, which depends on package B - and another project relied directly on package B. Package B was removed from |
|> List.map (fun np -> np.Name.Id, dependencies.DirectDependencies.[np.Name]) | ||
|> List.map (fun np -> | ||
let dep = | ||
match Map.tryFind np.Name dependencies.DirectDependencies with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to go via NormalizedPackageName or did we get both sides in correct casing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah... honestly not sure? I suppose we'd have to normalize both sides at that point; I'd take your advice as to whether it's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check
Handle transient dependencies better in pack command
No description provided.