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.

Where Next?

Popular in Questions Top

New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement