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

Changed hex.outdated to show if a dependency can be updated #323

Merged
merged 3 commits into from
Dec 17, 2016

Conversation

lasseebert
Copy link
Contributor

It now takes all dependent packages into account and simply prints a Yes or a No for outdated packages.

Fixes #322

The added test would show with a green "Requirement" before this update, even though it can't be updated.

It now takes all dependent packages into account and simply prints a Yes
or a No for outdated packages.

Fixes hexpm#322
@lasseebert
Copy link
Contributor Author

Build fails for OTP 17.5 with errors that seem unrelated to my changes. Is that expected?

@ericmj
Copy link
Member

ericmj commented Dec 5, 2016

Build fails for OTP 17.5 with errors that seem unrelated to my changes. Is that expected?

Not expected, but it doesn't seem to be related to your changes :).

Copy link
Member

@ericmj ericmj left a comment

Choose a reason for hiding this comment

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

I left two minor comments. I would like one more review before merging.

@@ -1,5 +1,8 @@
## v0.14.2-dev

### Bug fixes
* mix hex.outdated correctly tests if a package can be updated

Copy link
Member

Choose a reason for hiding this comment

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

You can leave it but in the future please don't change the changelog because it easily causes merge conflicts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Roger 👍

deps
|> get_requirements(dep.app)
|> Enum.map(fn [_, req_version] -> req_version end)
|> List.insert_at(0, dep.requirement)
Copy link
Member

Choose a reason for hiding this comment

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

I would do [dep.requirement|requirements] instead but you can leave as-is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that this is a bit ugly. Will change.

Copy link
Member

@ericmj ericmj left a comment

Choose a reason for hiding this comment

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

This should have been an approve :bowtie:

@ericmj
Copy link
Member

ericmj commented Dec 17, 2016

Looking for one more review. /cc @wojtekmach

@wojtekmach wojtekmach merged commit a930997 into hexpm:master Dec 17, 2016
@wojtekmach
Copy link
Member

Thank you!

@lasseebert
Copy link
Contributor Author

💗

@lasseebert lasseebert deleted the update_possible branch December 17, 2016 21:12
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