From 0555a8ec615cd972714f4c150e1d93c06aadef1c Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 11 Jul 2024 17:45:13 -0300 Subject: [PATCH] fix(mix): bizarre compilation order bug with `emqx` profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some bizarre reason, if the `:apps` key is defined in the `project()` callback in the root umbrella `mix.exs`, it messes up the compilation order that mix follows when compiling the project from scratch. Specifically, in the `emqx` profile, even though `:emqx_utils` is an explicit dependency of `:emqx_ds_builtin_local`, mix insisted in compiling the latter before the former, and failing, obviously. Removing the explicit `:apps` from the project definition solved this. 🫠 --- mix.exs | 2 -- 1 file changed, 2 deletions(-) diff --git a/mix.exs b/mix.exs index 0741dae9e..5368d1509 100644 --- a/mix.exs +++ b/mix.exs @@ -41,8 +41,6 @@ defmodule EMQXUmbrella.MixProject do if new_mix_build?() do [ apps_path: "apps", - apps: - applications(profile_info.release_type, profile_info.edition_type) |> Keyword.keys(), erlc_options: erlc_options(profile_info, version), version: version, deps: deps(profile_info, version),