Skip to content

Compilation warnings on Elixir 1.13 #21

@kuroda

Description

@kuroda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions