cblavier

cblavier

Elixir 1.19: deps only compilation

Hi,

I’m in the process of upgrading from Elixir 1.17.x to Elixir 1.19.x. I’ve noticed that running mix loadpaths now compiles the entire application (including dependencies and application code), rather than just the dependencies. I observe the same behavior with mix deps.compile.

In our CI pipeline, it’s important to compile dependencies and application code separately to enable efficient layer caching.

Is this a regression in Elixir 1.19.x? Is there an alternative approach to achieve this separation with the new version?

Thank you for your help!

Marked As Solved

josevalim

josevalim

Creator of Elixir

mix deps.compile --skip-umbrella-children should do the trick.

Also Liked

josevalim

josevalim

Creator of Elixir

Gah! Apparently my phone sneaked in some weird Unicode dash! Thanks!

NobbZ

NobbZ

I never used mix loadpaths, though I am under the impression, that mix deps.compile always compiled all “children” under the umbrella, though with “plain singular” apps I never observed the described behaviour.

I do not have a testbed for non-umbrella apps currently.

PS: Just checked, with 1.18, all apps under the umbrella are built when using mix deps.compile.

cblavier

cblavier

ChatGPT to the rescue :sweat_smile:

The error is caused by the command you’re running:
mix deps.compile –-skip-umbrella-children

Notice the double dashes before ⁠skip-umbrella-children. The error message:
** (Mix) Unknown dependency –-skip-umbrella-children for environment dev

Problem:

You’re using the wrong type of dash before ⁠skip-umbrella-children.

You have ⁠–-skip-umbrella-children (an en dash ⁠ plus hyphen ⁠-), when it should be ⁠--skip-umbrella-children (two standard hyphens).

This often happens when copying from formatted text editors that substitute double hyphens with a long dash.

lud

lud

(I fixed the post if someone reads José’s post)

Where Next?

Popular in Questions Top

pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
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
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

Other popular topics Top

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
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
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 27727 240
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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
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
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement