Adding a github erlang project to mix (that is not on hex - yet)

I woould like to try erserve (https://github.com/del/erserve) and added in mix.exs to the deps:
{:rserve, github: “del/erserve”}
and to the applications
:rserve
On mix deps.get I get some errors, see below. Should I (and am I allowed to) add this project to hex (https://hex.pm/docs/publish)?

root@0fe9bc6a5b8d:/stefan/bpm_demo/apps/bpm_server# mix deps.get
* Getting rserve (https://github.com/del/erserve.git)
Cloning into '/stefan/bpm_demo/deps/rserve'...
remote: Counting objects: 272, done.
remote: Total 272 (delta 0), reused 0 (delta 0), pack-reused 272
Receiving objects: 100% (272/272), 164.77 KiB | 0 bytes/s, done.
Resolving deltas: 100% (153/153), done.
Checking connectivity... done.

08:10:35.919 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired


08:10:36.023 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired

Registry update failed (http_error)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:tls_alert, 'certificate expired'}}]}
Running dependency resolution
root@0fe9bc6a5b8d:/stefan/bpm_demo/apps/bpm_server# mix deps.get

08:12:24.222 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired


08:12:24.325 [error] SSL: :certify: ssl_handshake.erl:1507:Fatal error: certificate expired

Registry update failed (http_error)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:tls_alert, 'certificate expired'}}]}
Running dependency resolution
All dependencies up to date

Does mix deps.get work in another project? The error you are posting seems to be related to hex… Your mix tries to connect to the hex site but then discovers certificate problems and fails.

Please make sure that an empty mix-project with a single hex-dependency works and report back here.

Either way we will need more information about your environment like operating system, elixir and erlang version and maybe involved installation sources, version/environment managers etc.

If you could also provide a minimal project (github repo?) to reproduce the error that would be great.

1 Like

Ubuntu 14.04.4 LTS
Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.3.0)

I created a new mix project and inserted {:httpoison, “~> 0.9” } into the deps. mix deps.get does not report problems.
Then I created another new project and inserted the erserve dependency, mix deps.get does not give a problem this time!
Then I go back to the project where I need erserve, no problem anymore either, and I can execute a first command of the lib.