Allow using elixir > 1.13.0 (current 1.13.2)

51 views
Skip to first unread message

Fusion Future

unread,
Jan 19, 2022, 5:01:53 AM1/19/22
to rabbitmq-users
In `deps/rabbitmq_cli/mix.exs`, it says it supports only Elixir >= 1.10.4 and < 1.13.0. Now 1.13.2 has released. Is it possible to update the requirement?


Thanks.

Luke Bakken

unread,
Jan 19, 2022, 9:10:31 AM1/19/22
to rabbitmq-users
Hello,

Have you tried relaxing the restriction and compiling RabbitMQ to ensure 1.13.2 works?

Fusion Future

unread,
Jan 20, 2022, 2:29:59 AM1/20/22
to rabbitmq-users
It does not work. I changed to `elixir: ">= 1.10.4 and < 1.14.0",` but the build still failed.

```
[ 84s] ==> rabbitmqctl [ 84s] Unchecked dependencies for environment dev:
[ 84s] * rabbit_common (/home/abuild/rpmbuild/BUILD/rabbitmq-server-3.9.13/deps/rabbit_common)
[ 84s] could not find an app file at "_build/dev/lib/rabbit_common/ebin/rabbit_common.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option) [ 84s] ** (Mix) Can't continue due to errors on dependencies
[ 84s] make[2]: *** [Makefile:108: escript/rabbitmqctl] Error 1
[ 84s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/rabbitmq-server-3.9.13/deps/rabbitmq_cli'
[ 84s] make[1]: *** [../../erlang.mk:4512: deps] Error 2
[ 84s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/rabbitmq-server-3.9.13/deps/rabbit'
[ 84s] make: *** [erlang.mk:4512: deps] Error 2
```

Luke Bakken

unread,
Jan 20, 2022, 8:54:13 AM1/20/22
to rabbitmq-users
Hm, that error does not look related to the elixir version. Try doing a complete clean and re-run:

git  clean -xffd

Luke Bakken

unread,
Jan 20, 2022, 12:00:24 PM1/20/22
to rabbitmq-users
Hello again -

There appears to be an issue around dependency versions. We'll look into it though support for Elixir 1.13 isn't high priority.

bakkenl@bakkenl-z01 ~/development/rabbitmq/rabbitmq-server/deps/rabbitmq_cli (master *%=)
$ ERL_COMPILER_OPTIONS=deterministic mix make_all
warning: use Mix.Config is deprecated. Use the Config module instead
  config/config.exs:10

Resolving Hex dependencies...

Failed to use "recon" (version 2.5.2) because
  observer_cli (version 1.7.1) requires ~>2.5.1
  rabbit_common (versions 3.8.0 to 3.8.4) requires 2.5.0
  mix.lock specifies 2.5.2


Failed to use "recon" (version 2.5.2) because
  observer_cli (version 1.7.1) requires ~>2.5.1
  rabbit_common (versions 3.8.5 to 3.8.26) requires 2.5.1
  mix.lock specifies 2.5.2

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}


Luke Bakken

unread,
Jan 20, 2022, 12:05:22 PM1/20/22
to rabbitmq-users
Keep an eye on this issue if you're interested - https://github.com/rabbitmq/rabbitmq-server/issues/4019

Thank you for the initial report!

Reply all
Reply to author
Forward
0 new messages