Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation warnings on Elixir 1.13 #21

Open
kuroda opened this issue Dec 27, 2021 · 0 comments
Open

Compilation warnings on Elixir 1.13 #21

kuroda opened this issue Dec 27, 2021 · 0 comments

Comments

@kuroda
Copy link

kuroda commented Dec 27, 2021

Compiling ssh_client_key_api with Elixir 1.13.1 (compiled with Erlang/OTP 24) gives the following warning:

warning: :public_key.pem_decode/1 defined in application :public_key is used by the current application but the current application does not depend on :public_key. To fix this, you must do one of:

  1. If :public_key is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :public_key is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :public_key, you may optionally skip this warning by adding [xref: [exclude: [:public_key]]] to your "def project" in mix.exs

  lib/ssh_client_key_api.ex:100: SSHClientKeyAPI.user_key/2

warning: :public_key.pem_entry_decode/1 defined in application :public_key is used by the current application but the current application does not depend on :public_key. To fix this, you must do one of:

  1. If :public_key is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :public_key is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :public_key, you may optionally skip this warning by adding [xref: [exclude: [:public_key]]] to your "def project" in mix.exs

  lib/ssh_client_key_api.ex:112: SSHClientKeyAPI.decode_pem_entry/2

warning: :public_key.pem_entry_decode/2 defined in application :public_key is used by the current application but the current application does not depend on :public_key. To fix this, you must do one of:

  1. If :public_key is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :public_key is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :public_key, you may optionally skip this warning by adding [xref: [exclude: [:public_key]]] to your "def project" in mix.exs

  lib/ssh_client_key_api.ex:120: SSHClientKeyAPI.decode_pem_entry/2

warning: :public_key.ssh_decode/2 defined in application :public_key is used by the current application but the current application does not depend on :public_key. To fix this, you must do one of:

  1. If :public_key is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :public_key is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :public_key, you may optionally skip this warning by adding [xref: [exclude: [:public_key]]] to your "def project" in mix.exs

Found at 2 locations:
  lib/ssh_client_key_api.ex:68: SSHClientKeyAPI.add_host_key/3
  lib/ssh_client_key_api.ex:87: SSHClientKeyAPI.is_host_key/4

warning: :public_key.ssh_encode/2 defined in application :public_key is used by the current application but the current application does not depend on :public_key. To fix this, you must do one of:

  1. If :public_key is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :public_key is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :public_key, you may optionally skip this warning by adding [xref: [exclude: [:public_key]]] to your "def project" in mix.exs

  lib/ssh_client_key_api.ex:70: SSHClientKeyAPI.add_host_key/3

warning: :ssh.default_algorithms/0 defined in application :ssh is used by the current application but the current application does not depend on :ssh. To fix this, you must do one of:

  1. If :ssh is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :ssh is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :ssh, you may optionally skip this warning by adding [xref: [exclude: [:ssh]]] to your "def project" in mix.exs

  lib/ssh_client_key_api.ex:4: SSHClientKeyAPI

warning: :public_key.ssh_decode/2 is deprecated. It will be removed in OTP 26. Use ssh_file:decode/2 instead
Found at 2 locations:
  lib/ssh_client_key_api.ex:68: SSHClientKeyAPI.add_host_key/3
  lib/ssh_client_key_api.ex:87: SSHClientKeyAPI.is_host_key/4

warning: :public_key.ssh_encode/2 is deprecated. It will be removed in OTP 26. Use ssh_file:encode/2 instead
  lib/ssh_client_key_api.ex:70: SSHClientKeyAPI.add_host_key/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant