ExWeb3 / ex_keccak

Elixir library for computing Keccak SHA3-256 hashes using a NIF built tiny-keccak Rust crate.
Apache License 2.0
25 stars 20 forks source link

x86_64-alpine-linux-musl support #37

Closed spilin closed 9 months ago

spilin commented 11 months ago

Hello. I am having issues deploying a project on alpine. Is it possible to add x86_64-alpine-linux-musl to releases?

== Compilation error in file lib/ex_keccak.ex ==
** (RuntimeError) precompiled NIF is not available for this target: "x86_64-alpine-linux-musl".
The available targets are:
 - aarch64-unknown-linux-musl
 - aarch64-apple-darwin
 - aarch64-unknown-linux-gnu
 - arm-unknown-linux-gnueabihf
 - riscv64gc-unknown-linux-gnu
 - x86_64-apple-darwin
 - x86_64-pc-windows-gnu
 - x86_64-pc-windows-msvc
 - x86_64-unknown-linux-gnu
 - x86_64-unknown-linux-musl
    lib/ex_keccak.ex:10: (module)
could not compile dependency :ex_keccak, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ex_keccak", update it with "mix deps.update ex_keccak" or clean it with "mix deps.clean ex_keccak"
ayrat555 commented 10 months ago

@spilin hey. I think it should be possible to force the build using env var

can you please try setting TARGET_VENDOR to unknown

@tzumby should this target be added to a list of supported targets?

tzumby commented 9 months ago

Let's see if your suggestion works @ayrat555 , otherwise I can add the new target.

spilin commented 9 months ago

Hey, @ayrat555, @tzumby . Thank you for this suggestion - it solved my specific case.