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

Handle transient dependencies better in pack command #649

Merged
merged 2 commits into from
Feb 24, 2015

Conversation

mavnn
Copy link
Contributor

@mavnn mavnn commented Feb 24, 2015

No description provided.

let dep =
match Map.tryFind np.Name dependencies.DirectDependencies with
| Some direct -> direct
// If it's a transiant dependency set
Copy link
Member

Choose a reason for hiding this comment

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

typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes :)

@forki
Copy link
Member

forki commented Feb 24, 2015

which case are we fixing here?

@mavnn
Copy link
Contributor Author

mavnn commented Feb 24, 2015

This fixes a "not found" exception when a package listed in paket.references for a project is not listed in the paket.dependencies file.

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 paket.dependencies by simplify and 💥

|> 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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

I will check

forki added a commit that referenced this pull request Feb 24, 2015
Handle transient dependencies better in pack command
@forki forki merged commit 016da70 into fsprojects:master Feb 24, 2015
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

2 participants