Hazem Borham
09/28/2023, 6:47 PMdyld[10799]: Library not loaded: libpact_ffi.dylib
Referenced from: <71696BE6-E884-368C-9BB5-72CEEC86D657> /private/var/folders/c6/3v5whjln5kgb0mwyjl8djklh0000gn/T/go-build482239365/b001/contracts.test
Reason: tried: 'libpact_ffi.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibpact_ffi.dylib' (no such file), 'libpact_ffi.dylib' (no such file), '/Users/redacted/integrations/tests/contracts/libpact_ffi.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/redacted/integrations/tests/contracts/libpact_ffi.dylib' (no such file), '/Users/redacted/integrations/tests/contracts/libpact_ffi.dylib' (no such file)
Hazem Borham
09/28/2023, 6:49 PMgo install <http://github.com/pact-foundation/pact-go/v2@latest|github.com/pact-foundation/pact-go/v2@latest> && pact-go -v -l DEBUG install -f
which results in something like this:
2023/09/28 10:49:47 [INFO] downloading library from <https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.4.5/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz> to /usr/local/lib/libpact_ffi.dylib
&{}
2023/09/28 10:49:49 [DEBUG] obtaining hash for file /usr/local/lib/libpact_ffi.dylib
2023/09/28 10:49:49 [DEBUG] writing config {map[libpact_ffi:{libpact_ffi 0.4.5 15f5d7aee4067c48ef9dd1c25479157d}]}
2023/09/28 10:49:49 [DEBUG] writing yaml config to file libraries:
libpact_ffi:
libname: libpact_ffi
version: 0.4.5
hash: 15f5d7aee4067c48ef9dd1c25479157d
2023/09/28 10:49:49 [INFO] setting install_name on library libpact_ffi for osx
2023/09/28 10:49:49 [DEBUG] output from command []
2023/09/28 10:49:49 [INFO] package libpact_ffi found
2023/09/28 10:49:49 [INFO] checking version 0.4.5 of libpact_ffi against semver constraint >= 0.4.0, < 1.0.0
2023/09/28 10:49:49 [DEBUG] 0.4.5 satisfies constraints 0.4.5 >= 0.4.0, < 1.0.0
2023/09/28 10:49:49 [INFO] package libpact_ffi is correctly installed
2023/09/28 10:49:49 [DEBUG] skip checking ffi version() call because FFI not loaded. This is expected when running the 'pact-go' command.