shahryarjb

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

  1. Delete build, deps, mix.lock and re install
  2. I run mix deps.compile as the error said and has no problem but again when you want to use project has top error
  3. Delete lock file of mishka_installer and get the mix get.deps again to create new lock file
  4. Both version of elixir in 2 project I mean mishka_installer and my fresh project in mix files is 1.16
  5. I am using elixir 1.17 in my system with otp 27
  6. I have read many topics in forum :face_with_spiral_eyes:
  7. 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

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
https://github.com/mishka-group/mishka_developer_tools/commit/b0fc118d27922f67ad67782d9ed61f6827c4abec#diff-b5c7bf6b999b0d29f751a26c3e91c23ce67cd8e4f782ea1957451cb4cd76534fL1497-L1503

Where Next?

Popular in Questions Top

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
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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
srinivasu
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 t...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
lanycrost
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 Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
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
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31013 112
New
Lily
In templates/appointment/index.html.eex: &lt;%= for appointment &lt;- @appointments do %&gt; &lt;tr&gt; &lt;td&gt;&lt;%= appoi...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39467 209
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
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
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement