-
Notifications
You must be signed in to change notification settings - Fork 189
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
Support :warn_if_outdated in deps #1058
Conversation
Example: $ mix deps.get Resolving Hex dependencies... Resolution completed in 0.0s Unchanged: ecto 3.3.1 ecto_sql 3.3.2 ex_doc 0.1.0 postgrex 0.2.1 warning: the following deps set `warn_if_outdated: true` and are outdated: * ecto 3.3.2 is available * ecto_sql 3.3.3 is available
lib/hex/remote_converger.ex
Outdated
if deps_to_warn != [] do | ||
IO.warn( | ||
[ | ||
"the following deps set `warn_if_outdated: true` and are outdated:\n\n", |
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.
We don't use backticks on Elixir but maybe we do on Hex. Please double check. :)
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.
Beautiful, although @ericmj should likely double check before merging!
lib/hex/remote_converger.ex
Outdated
|
||
latest_version = | ||
versions | ||
|> Enum.filter(&Version.match?(&1, requirement)) |
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.
Lets filter pre-releases also
1e7db74
to
81d3d64
Compare
81d3d64
to
4590e64
Compare
Example: