So I have been trying to run pact-verify stage in ...
# pact-js
m
So I have been trying to run pact-verify stage in my gitlab pipeline and I am facing below errors. Has anyone faced anything similar?
Error: Error relocating /builds/app/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.so: __vsnprintf_chk: symbol not found
I have tried with beta60 and beta62 as well but I don’t think its an issue with the version.
t
What operating system and node version are you using?
m
This is happening during the pipeline stage. os: alpine linux node version: v16.14.2
m
I don't believe we currently support Alpine Linux
t
Alpine is missing things it needs for glibc. You might get some mileage from apk adding the gcompat package to your alpine image
m
its working fine for another service which also uses docker alpine. not sure why its not working for me. Although the node version as well as the pact version is different over there.
m
Which version of pact? The 9.x.x line should, but the 10.x.x won't
m
Verification step works fine with 9.x but fails during match as the consumer is a JAVA application having v3 spec pacts.
Is there any plan for stable release for v3 spec for pact js anytime soon?
m
You can generate a v2 pact from Pact JVM if that's your issue
a
Hi, so i do i solve this? i’v followed the suggestion on the docker page, but am still getting this error working with latest pact-js on both provider and consumer
m
Alpine or docker in general? We currently don't officially support alpine
a
alpine
m
Apologies, that general docker guide needs updating to clarify this for the recent changes to a few of the languages
a
so if not alpine, what would be the recommended base image to use?
m
Debian or Ubuntu should work just fine
a
ok, will look into it. Thanks @Matt (pactflow.io / pact-js / pact-go)
👍 1
m
I'm on mobile, but we build on Linux VMs so whatever the default GH actions Ubuntu image is should work
I'll follow this up tomorrow, thanks for raising
a
just plain, vanilla ubuntu?
m
obviously with Node on it, it might need the build toolchain too for native dependencies
👍 1
I’ve just updated the guidance now. Thanks Arnon!
a
Looks great Matt, thanks 🙂
👍 1