@@ -33,7 +33,9 @@ defmodule Mix.Tasks.Hex.Outdated do
3333 at the project's current set of dependency requirements and what version
3434 they are locked to. When `mix deps.update` is called multiple packages may
3535 be updated that in turn update their own dependencies, which may cause the
36- package you want to update to not be able to update.
36+ package you want to update to not be able to update. If you want to force
37+ a dependency to be updated to a given version, you can directly update it
38+ in your `mix.exs`.
3739
3840 > In a project, this task must be invoked before any other tasks
3941 > that may load or start your application. Otherwise, you must
@@ -196,7 +198,8 @@ defmodule Mix.Tasks.Hex.Outdated do
196198
197199 base_message = "Run `mix hex.outdated APP` to see requirements for a specific dependency."
198200 diff_message = maybe_diff_message ( diff_links )
199- Hex.Shell . info ( [ "\n " , base_message , diff_message ] )
201+ diff_command_message = maybe_diff_command_message ( diff_links )
202+ Hex.Shell . info ( [ "\n " , base_message , diff_message , diff_command_message ] )
200203
201204 outdated = outdated ( versions )
202205 any_updatable? = any_possible_to_update? ( outdated )
@@ -328,6 +331,12 @@ defmodule Mix.Tasks.Hex.Outdated do
328331 diff_link ( diff_links )
329332 end
330333
334+ defp maybe_diff_command_message ( [ ] ) , do: ""
335+
336+ defp maybe_diff_command_message ( _diff_links ) do
337+ "\n \n To view the diff of a specific update, run `mix hex.package diff APP FROM..TO`."
338+ end
339+
331340 defp diff_link ( diff_links ) do
332341 long_url = "https://diff.hex.pm/diffs?" <> Enum . join ( diff_links , "&" )
333342
0 commit comments