Closed cliveyg closed 1 year ago
I believe the error message is due to trying to fetch the archived amqp_client github. This repo defaults to master but one of it's dependencies rabbitmq_codegen has had it's default branch changed to main. The script/build process is trying to access a non-existent master branch of rabbitmq_codegen.
Is 'master' hardcoded somewhere in erlang.mk?
The RABBITMQ_CLIENT_PATCH is for old versions so it should probably be removed now. The branch names are wrong since the rename, I will correct them and then check it all works fine.
Oh right it's not just the branch name, the projects have been merged into a single repository. Hex seems to be the way for this now so I will look into fixing that and updating the project to use Hex directly.
The Hex issue is linked to the tar file from the package, I'll keep you posted.
A new package has been issued that fixes this issue: https://hex.pm/packages/amqp_client/3.11.0-1
See https://github.com/lukebakken/amqp-clients-test for example working projects. Thanks @lukebakken for the quick fixes!
Excellent thanks for the info.
Hi,
Mac OS version: 12.5.1 (Intel mac) Erlang installed via Brew: erlang 25.0.4
I wrote an Erlang application a few years ago and it built and ran successfully without problems. However when I went to build it again on my Mac it no longer installs the amqp_client dependency correctly (I also checked this on an Ubuntu server that used to build correctly with the same result).
Steps to reproduce:
Edit the Makefile to this:
Run
make
The error is:
Other things tried:
dep_amqp_client = hex 3.11.0
. So the Makefile looks like this:DEPS = amqp_client dep_amqp_client = hex 3.11.0
include erlang.mk
DEP rabbit_common (master) fatal: could not create work tree dir '/Users/me/dev/erlang_apps/badjuju/deps/rabbit_common': File exists