Hi team! I'm getting the following error when tryi...
# libpact_ffi-users
j
Hi team! I'm getting the following error when trying to run tests that use Pactnet (v5.0.0-beta.1) in a docker container using a dotnet 6 alpine image (mcr.microsoft.com/dotnet/sdk:6.0-alpine):
Copy code
Error Message:
   System.DllNotFoundException : Unable to load shared library 'pact_ffi' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: Error loading shared library libpact_ffi: No such file or directory
There are no apk packages for
libpact_ffi
as far as I know, do you know what I could be missing here?
m
I don’t think we support alpine, because shared library support on Alpine is tricky. To do that, would need to build a shared library for each version of musl and detect it at install time.
j
Ouch. Fair enough
m
mm
There is a musl target released here, so you could try it: https://github.com/pact-foundation/pact-reference/releases/tag/libpact_ffi-v0.4.8
But it could die in ways that are hard to describe in advance
j
It's all good. If there are no plans to support Alpine I should probably just move away from it.
👍 1
m
Yeah, it would be recommended. We could probably make that more clear on docs.pact.io. I’ll find a space for it. Any thoughts?
glibc
is much better for shared libraries, because it’s API is backwards compatible forever. So we can build against an old version of
glibc
and know it will work on any distribution that contains that early version or any later one. (Just about to pop out for an appointment, but will check ^^ when I’m back)
r
Try a Debian based image if you can
☝️ 1
👍 1