Unchecked dependencies for environment prod: while creating release with edelivery

I am trying to create release with edelivery and distillery but while compiling dependences I am running into below error. I am using coherence which has deps on uuid. I am not sure if I understanding this error message correctly. I found one more such issue on github but it was closed by removing dependency all together and here I did not follow it exactly. Can anyone help ???

Unchecked dependencies for environment prod:
* uuid (Hex package)
could not find an app file at "_build/prod/lib/uuid/ebin/uuid.app". This may happen if the dependency was not yet compiled, or you specified the wrong application name in your deps, or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix) Can't continue due to errors on dependencies

A remote command failed on:

pro@xxx.xxx.xxx.xxx

Output of the command is shown above and the command executed on that host is printed below for debugging purposes:

FAILED with exit status 1:

[ -f ~/.profile ] && source ~/.profile
set -e
cd /home/pro/edeliver/firefly/builds
if [ "mix" = "rebar" ]; then
  echo "using rebar to compile files"
  [[ "" != "true" ]] && ./rebar  clean skip_deps=true || :
  ./rebar  compile
elif [ "mix" = "mix" ] && [ "mix" = "mix" ]; then
  echo "Checking whether deps must be compiled for mix version 1.3.[01234]"
  # see https://github.com/boldpoker/edeliver/issues/94
  if mix --version | grep 'Mix 1.3.[01234]' >/dev/null 2>&1 ; then
    echo "Compiling deps because mix version 1.3.[01234] is used"
    APP="firefly" MIX_ENV="prod" mix deps.compile
  fi
  if [[ "" = "true" ]]; then
    APP="firefly" MIX_ENV="prod" AUTO_VERSION="" BRANCH="dev" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix do compile
  else
    APP="firefly" MIX_ENV="prod" AUTO_VERSION="" BRANCH="dev" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix do clean, compile
  fi
elif [ "mix" = "mix" ]; then
  echo "using mix to compile files"
  if [[ "" = "true" ]]; then
    if [[ -n "" ]]; then
      hint_message 'Using --auto-version together with --skip-mix-clean would not work!'
    fi
    APP="firefly" MIX_ENV="prod" AUTO_VERSION="" BRANCH="dev" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix do deps.compile, compile
  else
    APP="firefly" MIX_ENV="prod" AUTO_VERSION="" BRANCH="dev" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix do clean, deps.compile, compile
  fi
fi

I fixed this issue by updating uuid dependency. There’s a PR for coherence for this issue which is still pending. For now I am using forked version until it is merged. Here’s forked version https://github.com/pradosh987/coherence

3 Likes

The PR is merged now https://github.com/smpallen99/coherence/pull/366

2 Likes