KLaus_K

KLaus_K

How to track latest versions of Elixir/Phoenix etc

I am new to the world of Elixir and Phoenix and just encountered an issue caused by the fact that I was using an out-of-date version of phx.new. I resolved it by running:

mix archive.install hex phx_new 1.6.2

Having found the latest version (1.6.2) by a process of trial and error - i.e. keep increasing the version until mix told me what the latest version was. I am concerned that I may miss subsequent updates to the core libraries.

I can see that my mix.exs contains the deps entry:

{:phoenix, "~> 1.6.2"}

but this feels a bit circular - i.e. I only got this new entry because I manually upgraded phx.new.

What is the recommended way of installing Elixir and Phoenix and staying up-to-date? I am running on OS-X and also use Linux.

I had been using brew to install/update Elixir and Phoenix - is this incorrect? Is hex the one-and-only solution? If hex, then what is the recommended usage? I just looked through the hex command options and was excited to find a command mix hex.outdated ut swhen I ran this I got the result:

No hex dependencies

Which was a bit disappointing.

I’d really like to find out how to avoid using obsolete packages :smiley:

Most Liked

Ankhers

Ankhers

Just because it hasn’t been mentioned yet, you can run mix local.phx to update the phx_new archive.

LostKobrakai

LostKobrakai

There’s a difference between mix phx.new which is just responsible for generating the initial set of files for a new phoenix project, and keeping the generated project up to date. mix hex.outdated does the latter – it tells you about available updates for your current mix project and its dependencies. The mix phx.new generator is globally installed and there’s no mix command to tell you it’s outdated. But you can look at the hex project phx_new | Hex to see which versions are available (they should usually map 1:1 to phoenix versions). To see which archives you have installed you can run mix archive. The list includes the versions of installed archives. Some of them even include custom checks to warn you if they should be updated.

webuhu

webuhu

Additionally to the said above.
With recent mix phx.new version you can check the installed version with mix phx.new --version.

webuhu

webuhu

Concerning the project deps one always could do mix deps.update --all (probably after mix hex.outdated).

Where Next?

Popular in Questions Top

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
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
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
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
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

We're in Beta

About us Mission Statement