romenigld

romenigld

'mix hex.outdated' tells the 'Update not possible' for some libraries

I want to update my APP for the course PhoenixLiveView with Pragmatic Studio and when I try to do a mix hex.outdated it complains Update not possible for some libraries as you can see:

$ mix hex.outdated
Dependency              Current  Latest  Status
ecto_sql                3.4.3    3.5.4   Update possible
faker                   0.14.0   0.16.0  Update not possible
floki                   0.26.0   0.29.0  Update possible
gettext                 0.17.4   0.18.2  Update possible
inflex                  2.0.0    2.1.0   Update not possible
jason                   1.2.2    1.2.2   Up-to-date
number                  1.0.1    1.0.3   Update possible
phoenix                 1.5.6    1.5.7   Update possible
phoenix_ecto            4.1.0    4.2.1   Update possible
phoenix_html            2.14.2   2.14.3  Update possible
phoenix_live_dashboard  0.2.10   0.4.0   Update not possible
phoenix_live_reload     1.2.1    1.3.0   Update possible
phoenix_live_view       0.14.7   0.15.4  Update not possible
plug_cowboy             2.4.0    2.4.1   Update possible
postgrex                0.15.3   0.15.8  Update possible
telemetry_metrics       0.6.0    0.6.0   Up-to-date
telemetry_poller        0.5.0    0.5.1   Update possible
timex                   3.6.2    3.6.3   Update possible

Run `mix hex.outdated APP` to see requirements for a specific dependency.

To view the diffs in each available update, visit:

I want to try the command mix deps.update.
But first I want to ask here how to properly update these libraries.
Someone can help me with this please?

Marked As Solved

kokolegorille

kokolegorille

Sorry I was wrong and You also need to change your versions in mix.exs as well, as mentionned by @shamanime

Try to change your mix.exs to

dashboard → 0.4
live_view → 0.15

then mix deps.get and mix compile…

Also Liked

shamanime

shamanime

The command will consider the restrictions in your mix.exs file.

When you run mix dips.update --all, it will upgrade all versions labeled as “Update possible”.

For instance, say you have {:phx_gen_auth, "~> 0.5.0"} in your mix file.
After you run mix hex.outdated you’ll see:

Dependency              Current  Latest  Status               
phx_gen_auth            0.5.0    0.6.0   Update not possible  

In this case, the update is not possible because in the mix file you specifically restricted the upgrade to 0.5 versions, it would update to 0.5.x as 0.5.2 or 0.5.9 but it won’t upgrade to 0.6.x.

So you might want to relax your dependencies a little bit.

hauleth

hauleth

“Update not possible” mean that constraints in direct or indirect dependencies are preventing upgrade. For example if some library requires inflex =2.0.0 then there is nothing you can do unless that dependency updates their constraint. Of course you can override deps, but that can cause breakages in that dependencies due to incompatibility.

LostKobrakai

LostKobrakai

The auto fetching of deps can be disabled in the settings.

romenigld

romenigld

So I do a:

$ mix deps.update --all
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  combine 0.10.0
  cowboy 2.8.0
  cowlib 2.9.1
  faker 0.14.0
  html_entities 0.5.1
  inflex 2.0.0
  jason 1.2.2
  metrics 1.0.1
  mimerl 1.2.0
  phoenix_live_dashboard 0.2.10
  phoenix_pubsub 2.0.0
  plug_crypto 1.2.0
  ranch 1.7.1
  telemetry 0.4.2
  telemetry_metrics 0.6.0
Upgraded:
  certifi 2.5.1 => 2.5.3
  connection 1.0.4 => 1.1.0
  cowboy_telemetry 0.3.0 => 0.3.1
  db_connection 2.2.2 => 2.3.1
  decimal 1.9.0 => 2.0.0 (major)
  ecto 3.4.3 => 3.5.6
  ecto_sql 3.4.3 => 3.5.4
  file_system 0.2.8 => 0.2.10
  floki 0.26.0 => 0.29.0 (minor)
  gettext 0.17.4 => 0.18.2 (minor)
  hackney 1.15.2 => 1.17.0
  idna 6.0.0 => 6.1.1
  mime 1.4.0 => 1.5.0
  number 1.0.1 => 1.0.3
  parse_trans 3.3.0 => 3.3.1
  phoenix 1.5.6 => 1.5.7
  phoenix_ecto 4.1.0 => 4.2.1
  phoenix_html 2.14.2 => 2.14.3
  phoenix_live_reload 1.2.1 => 1.3.0
  phoenix_live_view 0.14.7 => 0.14.8
  plug 1.10.4 => 1.11.0
  plug_cowboy 2.4.0 => 2.4.1
  postgrex 0.15.3 => 0.15.8
  ssl_verify_fun 1.1.5 => 1.1.6
  telemetry_poller 0.5.0 => 0.5.1
  timex 3.6.2 => 3.6.3
  tzdata 1.0.3 => 1.0.5
  unicode_util_compat 0.4.1 => 0.7.0 (minor)
* Updating phoenix (Hex package)
* Updating phoenix_ecto (Hex package)
* Updating ecto_sql (Hex package)
* Updating postgrex (Hex package)
* Updating phoenix_live_view (Hex package)
* Updating floki (Hex package)
* Updating phoenix_html (Hex package)
* Updating phoenix_live_reload (Hex package)
* Updating telemetry_poller (Hex package)
* Updating gettext (Hex package)
* Updating plug_cowboy (Hex package)
* Updating number (Hex package)
* Updating timex (Hex package)
* Updating tzdata (Hex package)
* Updating hackney (Hex package)
* Updating certifi (Hex package)
* Updating idna (Hex package)
* Updating parse_trans (Hex package)
* Updating ssl_verify_fun (Hex package)
* Updating unicode_util_compat (Hex package)
* Updating decimal (Hex package)
* Updating cowboy_telemetry (Hex package)
* Updating plug (Hex package)
* Updating mime (Hex package)
* Updating file_system (Hex package)
* Updating connection (Hex package)
* Updating db_connection (Hex package)
* Updating ecto (Hex package)

and then:

mix hex.outdated
Dependency              Current  Latest  Status
ecto_sql                3.5.4    3.5.4   Up-to-date
faker                   0.14.0   0.16.0  Update not possible
floki                   0.29.0   0.29.0  Up-to-date
gettext                 0.18.2   0.18.2  Up-to-date
inflex                  2.0.0    2.1.0   Update not possible
jason                   1.2.2    1.2.2   Up-to-date
number                  1.0.3    1.0.3   Up-to-date
phoenix                 1.5.7    1.5.7   Up-to-date
phoenix_ecto            4.2.1    4.2.1   Up-to-date
phoenix_html            2.14.3   2.14.3  Up-to-date
phoenix_live_dashboard  0.2.10   0.4.0   Update not possible
phoenix_live_reload     1.3.0    1.3.0   Up-to-date
phoenix_live_view       0.14.8   0.15.4  Update not possible
plug_cowboy             2.4.1    2.4.1   Up-to-date
postgrex                0.15.8   0.15.8  Up-to-date
telemetry_metrics       0.6.0    0.6.0   Up-to-date
telemetry_poller        0.5.1    0.5.1   Up-to-date
timex                   3.6.3    3.6.3   Up-to-date

Sorry guys, what I need to do now?
The path for the commands to update was ok?
So now how I need to do for upgrade the phoenix_live_view?

Where Next?

Popular in Questions Top

SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
gonzofish
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
idi527
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir iex(2)...
New

Other popular topics Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement