Build log
host
nerves_hub_cli 2.1.0 · fail · run nerves_hub_cli-2.1.0-1793133031535
294 of 294 lines
1Resolving Hex dependencies...2Resolution completed in 0.017s3All dependencies have been fetched4==> tablet5Compiling 2 files (.ex)6Generated tablet app7==> nerves_discovery8Compiling 5 files (.ex)9Generated nerves_discovery app10==> interactive_cmd11Compiling 1 file (.ex)12Generated interactive_cmd app13==> nerves14Compiling 65 files (.ex)15Generated nerves app16==> mime17Compiling 1 file (.ex)18Generated mime app19warning: "xref: [exclude: ...]" in your mix.exs file is deprecated, instead use: "elixirc_options: [no_warn_undefined: ...]"20 (mix 1.20.3) lib/mix/tasks/compile.elixir.ex:243: Mix.Tasks.Compile.Elixir.xref_exclude_opts/221 (mix 1.20.3) lib/mix/tasks/compile.elixir.ex:142: Mix.Tasks.Compile.Elixir.run/122 (mix 1.20.3) lib/mix/task.ex:502: anonymous fn/3 in Mix.Task.run_task/523 (mix 1.20.3) lib/mix/task.compiler.ex:299: Mix.Task.Compiler.run_compiler/224 (mix 1.20.3) lib/mix/task.compiler.ex:287: Mix.Task.Compiler.run/425 (mix 1.20.3) lib/mix/tasks/compile.all.ex:75: Mix.Tasks.Compile.All.do_run/22627==> x50928Compiling 24 files (.ex)29 warning: the variable "size" is accessed inside size(...) of a bitstring but it was defined outside of the match. You must precede it with the pin operator30 │31 371 │ <<i::unsigned-size(size)-unit(8)>> = :crypto.strong_rand_bytes(size)32 │ ~33 │34 └─ lib/x509/certificate.ex:371:24: X509.Certificate.random_serial/13536Generated x509 app37==> circular_buffer38Compiling 1 file (.ex)39Generated circular_buffer app40==> jason41Compiling 10 files (.ex)42Generated jason app43==> logger_backends44Compiling 7 files (.ex)45Generated logger_backends app46==> hpax47Compiling 4 files (.ex)48Generated hpax app49==> mint50Compiling 1 file (.erl)51Compiling 21 files (.ex)52Generated mint app53==> tesla54Compiling 58 files (.ex)55Generated tesla app56==> nimble_csv57Compiling 1 file (.ex)58Generated nimble_csv app59==> pbcs60Compiling 9 files (.ex)61 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 operator62 │63 20 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key64 │ ~65 │66 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:20:28: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/36768 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 operator69 │70 20 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key71 │ ~72 │73 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:20:60: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/37475 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 operator76 │77 24 │ <<cipher_tag::binary-size(tag_size), _::binary>> = hmac_sha2(mac_key, mac_data)78 │ ~79 │80 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:24:31: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/38182 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 operator83 │84 36 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key85 │ ~86 │87 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:36:28: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/38889 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 operator90 │91 36 │ <<mac_key::binary-size(mac_size), enc_key::binary-size(enc_size)>> = key92 │ ~93 │94 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:36:60: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/39596 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 operator97 │98 41 │ <<^cipher_tag::binary-size(tag_size), _::binary>> ->99 │ ~100 │101 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:41:34: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/3102103 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 operator104 │105 15 │ <<derived_key::binary-size(derived_key_length), _::binary>> =106 │ ~107 │108 └─ lib/pbcs/pkcs5.ex:15:34: PBCS.PKCS5.pbkdf2/5109110 warning: the following clause cannot match because the previous clauses already matched all possible values:111112 content_encryptor_error ->113114 it attempts to match on the result of:115116 module.init(protected, opts)117118 which has the already matched type:119120 dynamic({:ok, %{key_length: integer()}})121122 where "content_encryptor_error" was given the type:123124 # type: dynamic({:ok, %{key_length: integer()}})125 # from: lib/pbcs/content_encryptor.ex:52:11126 content_encryptor_error127128 type warning found at:129 │130 52 │ content_encryptor_error ->131 │ ~132 │133 └─ lib/pbcs/content_encryptor.ex:52:35: PBCS.ContentEncryptor.init/2134135 warning: incompatible types given to aes_cbc_encrypt/3:136137 aes_cbc_encrypt(enc_key, iv, pkcs7_pad(plain_text))138139 given types:140141 binary(), dynamic(bitstring()), -binary()-142143 but expected one of:144145 bitstring(), term(), {term(), term()}146147 where "enc_key" was given the type:148149 # type: binary()150 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:20:46151 <<..., enc_key::binary-size(enc_size)>>152153 where "iv" was given the types:154155 # type: dynamic(bitstring())156 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:14:47157 iv158159 # type: bitstring()160 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:16:14161 bit_size(iv)162163 where "plain_text" was given the types:164165 # type: binary()166 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:15:31167 is_binary(plain_text)168169 # type: binary()170 # from: lib/pbcs/aes_cbc_hmac_sha2.ex171 {aad, plain_text}172173 type warning found at:174 │175 21 │ cipher_text = aes_cbc_encrypt(enc_key, iv, pkcs7_pad(plain_text))176 │ ~177 │178 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:21:19: PBCS.AES_CBC_HMAC_SHA2.content_encrypt/3179180 warning: incompatible types given to aes_cbc_decrypt/3:181182 aes_cbc_decrypt(enc_key, iv, cipher_text)183184 given types:185186 binary(), binary(), -binary()-187188 but expected one of:189190 bitstring(), term(), {term(), term(), term()}191192 where "cipher_text" was given the types:193194 # type: binary()195 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:30:23196 {aad, cipher_text, cipher_tag}197198 # type: binary()199 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:31:31200 is_binary(cipher_text)201202 where "enc_key" was given the type:203204 # type: binary()205 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:36:46206 <<..., enc_key::binary-size(enc_size)>>207208 where "iv" was given the types:209210 # type: dynamic(bitstring())211 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:30:60212 iv213214 # type: bitstring()215 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:32:51216 bit_size(iv)217218 # type: binary()219 # from: lib/pbcs/aes_cbc_hmac_sha2.ex:38220 <<..., iv::binary, ...>>221222 type warning found at:223 │224 42 │ case aes_cbc_decrypt(enc_key, iv, cipher_text) do225 │ ~226 │227 └─ lib/pbcs/aes_cbc_hmac_sha2.ex:42:14: PBCS.AES_CBC_HMAC_SHA2.content_decrypt/3228229Generated pbcs app230==> table_rex231Compiling 7 files (.ex)232 warning: incompatible types given to Map.get/3:233234 Map.get(cell, :width_calc, nil)235236 the map:237238 dynamic(%TableRex.Cell{})239240 does not have all required keys:241242 :width_calc243244 therefore this function will always return nil245246 where "cell" was given the types:247248 # type: dynamic(%TableRex.Cell{})249 # from: lib/table_rex/renderer/text.ex:305:63250 %TableRex.Cell{} = cell251252 # type: dynamic(%TableRex.Cell{})253 # from: lib/table_rex/renderer/text.ex254 {%TableRex.Cell{} = cell, col_index}255256 type warning found at:257 │258 312 │ Map.get(cell, :width_calc, nil) || Table.get_column_meta(table, col_index, :width_calc)259 │ ~260 │261 └─ lib/table_rex/renderer/text.ex:312:11: TableRex.Renderer.Text.render_cell/3262263Generated table_rex app264==> nerves_hub_cli265Compiling 45 files (.ex)266warning: `use Tesla.Builder` and `use Tesla` in NervesHubCLI.API are soft-deprecated. It will be removed in future major version in favor of267Runtime Configuration instead. Please share your feedback at https://github.com/elixir-tesla/tesla/discussions/732268269If you can turn off this warning, add the following to your config.exs:270271```elixir272config :tesla, disable_deprecated_builder_warning: true273```274275 (tesla 1.22.0) lib/tesla/builder.ex:12: Tesla.Builder."MACRO-__using__"/2276 (elixir 1.20.3) src/elixir_dispatch.erl:263: :elixir_dispatch.expand_macro_fun/7277 (elixir 1.20.3) src/elixir_dispatch.erl:155: :elixir_dispatch.dispatch_require/7278 (elixir 1.20.3) src/elixir_expand.erl:670: :elixir_expand.expand_block/5279 (elixir 1.20.3) src/elixir_expand.erl:53: :elixir_expand.expand/3280 (elixir 1.20.3) src/elixir_dispatch.erl:277: :elixir_dispatch.expand_quoted/7281282 warning: function config/0 is unused283 │284 204 │ defp config() do285 │ ~286 │287 └─ lib/nerves_hub_cli/cli/utils.ex:204:8: NervesHubCLI.CLI.Utils (module)288289290== Compilation error in file lib/nerves_hub_cli/api.ex ==291** (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)292 CAStore.file_path()293 lib/nerves_hub_cli/api.ex:8: (module)294could 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"