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

Selective update should only update dependent packages #410

Merged
merged 3 commits into from
Dec 1, 2014
Merged

Conversation

forki
Copy link
Member

@forki forki commented Nov 30, 2014

@agross showed in #400 that we fix to few packages in selective updates.

Before: we fixed all direct dependencies from the paket.dependencies file and ignore indirect dependencies
Now: we fix all packages that are not dependencies of the package in question

member this.GetAllDependenciesOf(package) =
let usedPackages = HashSet<_>()

let rec addPackage (packageName:PackageName) =
Copy link
Member

Choose a reason for hiding this comment

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

@forki You could refactor it further to use an accumulator parameter, than we can call
addPackage package (HashSet<_>()) and remove this usedPackages.

Copy link
Member

Choose a reason for hiding this comment

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

the same logic is here - maybe could be reused?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes please send PR

Copy link
Member

Choose a reason for hiding this comment

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

Will do

@mexx
Copy link
Member

mexx commented Nov 30, 2014

besides of further functional refactoring, looks good 👍

forki added a commit that referenced this pull request Dec 1, 2014
Selective update should only update dependent packages
@forki forki merged commit 57d6303 into master Dec 1, 2014
@matthid matthid deleted the update branch May 6, 2017 13:47
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.

3 participants