Hi all, I am using `"@pact-foundation/pact": "^9...
# pact-js
e
Hi all, I am using
"@pact-foundation/pact": "^9.16.0"
, with node 18 and I am failing to install pact dependencies (the code below):
#!/usr/bin/env bash
set -e
apk --no-cache add ca-certificates wget
wget -q -O /etc/apk/keys/sgerrand.rsa.pub <https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub>
wget <https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk>
apk add glibc-2.34-r0.apk
I get the following error:
2023-08-25 09:31:12 (36.2 MB/s) - 'glibc-2.34-r0.apk' saved [1940882/1940882]
125fetch <https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz>
126fetch <https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz>
127(1/1) Installing glibc (2.34-r0)
128ERROR: glibc-2.34-r0: trying to overwrite etc/nsswitch.conf owned by alpine-baselayout-data-3.4.3-r1.
1291 error; 20 MiB in 27 packages
y
so alpine isn't supported for the latest release with the rust core for the ruby backed core, see https://github.com/pact-foundation/pact-ruby-standalone/wiki/Using-the-pact-ruby-standalone-with-Alpine-Linux-Docker or just use a debian based image or similar (non musl)
Also for future reference, I would advise reading up on https://docs.pact.io/help/how_to_ask_for_help#4-ask-a-good-question It provides some good advise at to how to communicate your problem with others. Basic information like
• Details of the environment you're using (Mac/Window/Linux, Docker).
Save the to and fro, and actually helps others, help you 👍