Build log
host
nerves_hub_cli 2.1.0 · fail · run nerves_hub_cli-2.1.0-1791010422035
246 of 246 lines
1Resolving Hex dependencies...2Resolution completed in 0.144s3Unchanged:4 circular_buffer 1.1.05 elixir_make 0.10.06 hpax 1.1.07 interactive_cmd 0.1.48 jason 1.4.59 mime 2.0.710 mint 1.11.011 nerves 2.0.0-pre.212 nerves_discovery 0.1.513 nerves_hub_cli 2.1.014 nerves_logging 0.2.415 nerves_runtime 0.13.1316 nerves_system_bbb 2.30.217 nerves_system_br 1.34.418 nerves_system_mangopi_mq_pro 0.17.219 nerves_system_qemu_aarch64 0.4.220 nerves_system_rpi0 2.1.221 nerves_system_rpi4 2.1.222 nerves_system_rpi5 2.1.223 nerves_system_trellis 0.5.024 nerves_system_x86_64 1.34.225 nerves_toolchain_aarch64_nerves_linux_gnu 15.3.126 nerves_toolchain_armv6_nerves_linux_gnueabihf 15.3.127 nerves_toolchain_armv7_nerves_linux_gnueabihf 15.3.128 nerves_toolchain_riscv64_nerves_linux_gnu 15.3.129 nerves_toolchain_x86_64_nerves_linux_musl 15.3.130 nerves_uevent 0.1.731 nimble_csv 1.3.032 pbcs 0.1.433 property_table 0.3.434 ring_logger 0.11.735 table_rex 4.1.036 tablet 0.3.337 tesla 1.21.338 toolshed 0.5.039 uboot_env 1.0.240 x509 0.9.241All dependencies have been fetched42==> tesla43Compiling 57 files (.ex)44Generated tesla app45==> pbcs46Compiling 9 files (.ex)47 warning: the variable "mac_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator48 │49 20 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key50 │ ~51 │52 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:20:28: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/35354 warning: the variable "enc_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator55 │56 20 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key57 │ ~58 │59 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:20:60: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/36061 warning: the variable "tag_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator62 │63 24 │ <<cipher_tag::binary-size(tag_size), _::binary>> = hmac_sha2(mac_key, mac_data)64 │ ~65 │66 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:24:31: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/36768 warning: the variable "mac_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator69 │70 36 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key71 │ ~72 │73 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:36:28: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/37475 warning: the variable "enc_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator76 │77 36 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key78 │ ~79 │80 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:36:60: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/38182 warning: the variable "tag_size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator83 │84 41 │ <<^cipher_tag::binary-size(tag_size), _::binary>> ->85 │ ~86 │87 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:41:34: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/38889 warning: the variable "derived_key_length" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator90 │91 15 │ <<derived_key::binary-size(derived_key_length), _::binary>> =92 │ ~93 │94 └─ lib/pbcs/pkcs5.ex:15:34: PBCS.PKCS5.pbkdf2/59596 warning: incompatible types given to aes_cbc_encrypt/3:9798 aes_cbc_encrypt(enc_key, iv, pkcs7_pad(plain_text))99100 given types:101102 binary(), dynamic(bitstring()), -binary()-103104 but expected one of:105106 bitstring(), term(), {term(), term()}107108 where "enc_key" was given the type:109110 # type: binary()111 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:20:46112 <<..., enc_key::binary-size(enc_size)>>113114 where "iv" was given the types:115116 # type: dynamic(bitstring())117 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:14:47118 iv119120 # type: bitstring()121 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:16:14122 bit_size(iv)123124 where "plain_text" was given the types:125126 # type: binary()127 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:15:31128 is_binary(plain_text)129130 # type: binary()131 # from: lib/pbcs/aes_cbc_hmac_sha2.ex132 {aad, plain_text}133134 type warning found at:135 │136 21 │ cipher_text = aes_cbc_encrypt(enc_key, iv, pkcs7_pad(plain_text))137 │ ~138 │139 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:21:19: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/3140141 warning: incompatible types given to aes_cbc_decrypt/3:142143 aes_cbc_decrypt(enc_key, iv, cipher_text)144145 given types:146147 binary(), binary(), -binary()-148149 but expected one of:150151 bitstring(), term(), {term(), term(), term()}152153 where "cipher_text" was given the types:154155 # type: binary()156 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:30:23157 {aad, cipher_text, cipher_tag}158159 # type: binary()160 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:31:31161 is_binary(cipher_text)162163 where "enc_key" was given the type:164165 # type: binary()166 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:36:46167 <<..., enc_key::binary-size(enc_size)>>168169 where "iv" was given the types:170171 # type: dynamic(bitstring())172 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:30:60173 iv174175 # type: bitstring()176 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:32:51177 bit_size(iv)178179 # type: binary()180 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:38181 <<..., iv::binary, ...>>182183 type warning found at:184 │185 42 │ case aes_cbc_decrypt(enc_key, iv, cipher_text) do186 │ ~187 │188 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:42:14: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/3189190 warning: the following clause cannot match because the previous clauses already matched all possible values:191192 content_encryptor_error ->193194 it attempts to match on the result of:195196 module.init(protected, opts)197198 which has the already matched type:199200 dynamic({:ok, %{key_length: integer()}})201202 where "content_encryptor_error" was given the type:203204 # type: dynamic({:ok, %{key_length: integer()}})205 # from: lib/pbcs/content_encryptor.ex:52:11206 content_encryptor_error207208 type warning found at:209 │210 52 │ content_encryptor_error ->211 │ ~212 │213 └─ lib/pbcs/content_encryptor.ex:52:35: PBCS.ContentEncryptor.init/2214215Generated pbcs app216==> nerves_hub_cli217Compiling 45 files (.ex)218warning: `use Tesla.Builder` and `use Tesla` in NervesHubCLI.API are soft-deprecated. It will be removed in future major version in favor of219Runtime Configuration instead. Please share your feedback at https://github.com/elixir-tesla/tesla/discussions/732220221If you can turn off this warning, add the following to your config.exs:222223```elixir224config :tesla, disable_deprecated_builder_warning: true225```226227 (tesla 1.21.3) lib/tesla/builder.ex:12: Tesla.Builder."MACRO-__using__"/2228 (elixir 1.20.3) src/elixir_dispatch.erl:263: :elixir_dispatch.expand_macro_fun/7229 (elixir 1.20.3) src/elixir_dispatch.erl:155: :elixir_dispatch.dispatch_require/7230 (elixir 1.20.3) src/elixir_expand.erl:670: :elixir_expand.expand_block/5231 (elixir 1.20.3) src/elixir_expand.erl:53: :elixir_expand.expand/3232 (elixir 1.20.3) src/elixir_dispatch.erl:277: :elixir_dispatch.expand_quoted/7233234 warning: function config/0 is unused235 │236 204 │ defp config() do237 │ ~238 │239 └─ lib/nerves_hub_cli/cli/utils.ex:204:8: NervesHubCLI.CLI.Utils (module)240241242== Compilation error in file lib/nerves_hub_cli/api.ex ==243** (UndefinedFunctionError) function CAStore.file_path/0 is undefined (module CAStore is not available). Make sure the module name is correct and has been specified in full (or that an alias has been defined)244 CAStore.file_path()245 lib/nerves_hub_cli/api.ex:8: (module)246could not compile dependency :nerves_hub_cli, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile nerves_hub_cli --force", update it with "mix deps.update nerves_hub_cli" or clean it with "mix deps.clean nerves_hub_cli"