certifi / erlang-certifi

SSL Certificates for Erlang
Other
132 stars 33 forks source link

Failed to solve release dependency certifi #1

Closed Kozlov-V closed 8 years ago

Kozlov-V commented 8 years ago

I'm migrate my web-app to Cowboy 2.0 and Erlang 18.1 But i have problem with solve release when i add Certifi app to my_application.app.src file

{application, testcowboy, [
  {description, "Hello Erlang!"},
  {vsn, "0.1.0"},
  {modules, []},
  {registered, [testcowboy]},
  {applications, [
    kernel,
    stdlib,
    eredis,
    certifi,
    cowboy
  ]},
  {mod, {testcowboy_app, []}},
  {env, []}
]}.

When i do make i have this error:

APP    testcowboy.app.src
 GEN    distclean-relx-rel
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /Users/asup/Documents/Develop/Erlang/testcowboy/ebin
          /Users/asup/Documents/Develop/Erlang/testcowboy/deps
          /usr/local/lib/erlang/lib
          /Users/asup/Documents/Develop/Erlang/testcowboy/apps
Failed to solve release:
 Dependency certifi is specified as a dependency but is not reachable by the system.

How i can use Certifi? Thank you!

benoitc commented 8 years ago

it should be added to erlang.mk will do a PR for that. Thanks to have noticed it.

benoitc commented 8 years ago

alternatively you can add it to your deps in your makefile.

Kozlov-V commented 8 years ago

Not solved I tried to make these two ways: 1. Add it to my deps in my app makefile: When i do make Certifi getting deps, but not make ebin folder, not compile, see screen: tset And I had the same problem:

Failed to solve release:
 Dependency certifi is specified as a dependency but is not reachable by the system.

2. I added to my erlang.mk file:

PACKAGES += certifi pkg_certifi_name = certifi pkg_certifi_description = Erlang library contains a CA bundle pkg_certifi_homepage = https://github.com/certifi/erlang-certifi pkg_certifi_fetch = git pkg_certifi_repo = https://github.com/certifi/erlang-certifi pkg_certifi_commit = master

test1

And I had the same problem:

Failed to solve release:
 Dependency certifi is specified as a dependency but is not reachable by the system.
dmitriid commented 8 years ago

More information and Loïc's comments here: https://github.com/ninenines/erlang.mk/issues/384#issuecomment-156369194

benoitc commented 8 years ago

well it's more an issue in erlang.mk than anything. I will try to find a way to possibly change it. but not sure if a make file using rebar would fix it ;)

dmitriid commented 8 years ago

Thank you!