shahryarjb
The dependency build is outdated error with getting lib from Github branch
Hello, I have the old version of my library in hex.pm (link). I have created a new branch in my Github and re-write whole project.
Before publishing I want to use it inside a fresh and basic mix new project.
Create a project
mix new user_management --sup
Change user_management mix file to download my new version of lib
defp deps do
[
{:mishka_installer,
github: "mishka-group/mishka_installer", branch: "refactor-dependencies"}
]
end
Install with mix commands
mix deps.get # has no problem
mix deps.compile # has no problem
mix compile or iex -S mix # **has problem**
Error
➜ user_management mix compile
==> mishka_installer
Compiling 12 files (.ex)
Generated mishka_installer app
==> user_management
Unchecked dependencies for environment dev:
* mishka_installer (https://github.com/mishka-group/mishka_installer.git - refactor-dependencies)
the dependency build is outdated, please run "mix deps.compile"
** (Mix) Can't continue due to errors on dependencies
What I did after this error
- Delete
build,deps,mix.lockand re install - I run
mix deps.compileas the error said and has no problem but again when you want to use project has top error - Delete
lockfile ofmishka_installerand get themix get.depsagain to create new lock file - Both version of elixir in 2 project I mean
mishka_installerand my fresh project in mix files is1.16 - I am using elixir 1.17 in my system with otp 27
- I have read many topics in forum

- At last I run this command
MIX_DEBUG=1 mix compile
Generated mishka_installer app
<- Ran mix compile.app in 2ms
<- Ran mix compile.all in 479ms
<- Ran mix compile in 482ms
==> user_management
-> Running mix will_recompile (inside UserManagement.MixProject)
<- Ran mix will_recompile in 0ms
Unchecked dependencies for environment dev:
* mishka_installer (https://github.com/mishka-group/mishka_installer.git - refactor-dependencies)
the dependency build is outdated, please run "mix deps.compile"
** (Mix.Error) Can't continue due to errors on dependencies
(mix 1.17.1) lib/mix.ex:588: Mix.raise/2
(mix 1.17.1) lib/mix/tasks/deps.loadpaths.ex:48: Mix.Tasks.Deps.Loadpaths.run/1
(mix 1.17.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(stdlib 6.0) timer.erl:590: :timer.tc/2
(mix 1.17.1) lib/mix/task.ex:519: Mix.Task.with_debug/4
(mix 1.17.1) lib/mix/tasks/loadpaths.ex:37: Mix.Tasks.Loadpaths.run/1
(mix 1.17.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(stdlib 6.0) timer.erl:590: :timer.tc/2
You can see my branch in github: https://github.com/mishka-group/mishka_installer/tree/refactor-dependencies
My stuff
MacOS 14.3.1 intel
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Elixir 1.17.1 (compiled with Erlang/OTP 27)
Please help me to fix it, thank you in advance
Most Liked
shahryarjb
Hello, See this comment please
I had have to change many code of mine and I left that option of my library, because it needs me to change my approach of passing data from function and do not pass the env from compile to runtime
deleted lines
1
Popular in Questions
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
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
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
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
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
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
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
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
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
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Other popular topics
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
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
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...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service.
Currently when I de...
New
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
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
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
New







