Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Mix task stopped working with Mix.Shell.cmd/2 is undefined #35

Open
ulbrich opened this issue Jan 19, 2018 · 4 comments
Open

Mix task stopped working with Mix.Shell.cmd/2 is undefined #35

ulbrich opened this issue Jan 19, 2018 · 4 comments

Comments

@ulbrich
Copy link

ulbrich commented Jan 19, 2018

Hi,

I love edib as it produces the smallest possible Docker images, but it stopped working with the following exception after I switched to a more recent version of Elixir:

| $> docker run --rm  -v "src/whatever:/source:ro" -v "src/whatever/tarballs:/stage/tarballs:rw"  -e MIX_ENV=prod edib/edib-tool:1.6.0
==> Creating artifact (might take a while) ...
** (UndefinedFunctionError) function Mix.Shell.cmd/2 is undefined or private. Did you mean one of:
    * cmd/3

Could you please have a look? I don't understand how I can run mix from a local copy of the source… 😇

Best,
Jan

@asaaki
Copy link

asaaki commented Jan 22, 2018

Can you give some insights on what setup you use? (Elixir/Mix version, OS, …).

AFAIK minor version bumps in Elixir (still) do cause incompatibilities, as the API changes and modules/functions get deprecated or change their behaviour.

(I suspect that the usage of Mix.Shell.cmd/2 is discouraged anyway.)

@ulbrich
Copy link
Author

ulbrich commented Jan 22, 2018

Sorry for this. I'm using ASDF to install and currently I'm using Erlang 20.1, Elixir 1.6.0 and Node.js 8.8.1 in this project. Thanks!

@antonpetkoff
Copy link

I have the same problem. I "fixed" it by downgrading elixir from 1.6.0 to 1.5.2.

@wizza-smile
Copy link

wizza-smile commented Jul 13, 2018

it's fixed in Elixir 1.6.6!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants