mischov / meeseeks_html5ever

Meeseeks-specific NIF binding of html5ever using Rustler.
Apache License 2.0
10 stars 15 forks source link

NIF version mismatch 2.15, 2.16 #66

Open lud-wj opened 5 months ago

lud-wj commented 5 months ago

Hello,

I have this error In my CI:

{:error,
 {:load_failed,
  ~c"Failed to load NIF library: '/home/circleci/myapp-build-dir/_build/test/lib/meeseeks_html5ever/priv/native/libmeeseeks_html5ever_nif-v0.14.3-nif-2.16-x86_64-unknown-linux-gnu.so: cannot open shared object file: No such file or directory'"}}

I see the github release only defines nif-2.15 binaries. Is there something I can configure on my side to use those ?

The current nif version seems to be 2.17:

iex(1)> :erlang.system_info :nif_version
~c"2.17"

I guess 2.16 is compatble, but maybe 2.15 is not, so that is why it does not try to download 2.15?

Thank you.

lud-wj commented 5 months ago

Ok so I found the problem.

If meeseeks only releases nif-2.15 binaries, it should configure the :nif_versions options to use RustlerPrecompiled with ["2.15"].

But that would not be enough, because RustlerPrecompiled would still select the 2.16 nif version (cf. https://github.com/philss/rustler_precompiled/issues/67 )