Matt (pactflow.io / pact-js / pact-go)
Édouard Lopez
04/25/2022, 3:05 PM❯ ls ~/.local/lib/
libpact_ffi.so
Matt (pactflow.io / pact-js / pact-go)
Édouard Lopez
04/27/2022, 9:11 AM❯ sudo cp ~/.local/lib/libpact_ffi.so /usr/local/lib/
Édouard Lopez
04/27/2022, 9:15 AM❯ gotestsum --junitfile .ignore/report.xml --format standard-verbose -- -count=1 -race -coverprofile=.ignore/coverage.txt -covermode=atomic (go list ./...)
? git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/cmd/pactgoconsumerexample [no test files]
? git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/cmd/pactgoconsumerexample/docs [no test files]
# <http://github.com/pact-foundation/pact-go/v2/internal/native|github.com/pact-foundation/pact-go/v2/internal/native>
/usr/bin/ld: cannot find -lpact_ffi
collect2: error: ld returned 1 exit status
WARN invalid TestEvent: FAIL git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/internal/b2b [build failed]
bad output from test2json: FAIL git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/internal/b2b [build failed]
WARN invalid TestEvent: FAIL git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/internal/b2c [build failed]
bad output from test2json: FAIL git.manomano.tech/qraft/contract-testing/pact-consumer-b2c-example-for-go/internal/b2c [build failed]
=== Errors
/usr/bin/ld: cannot find -lpact_ffi
collect2: error: ld returned 1 exit status
As pact-go
find the lib
❯ pact-go -l DEBUG install
2022/04/27 11:13:48 [INFO] package libpact_ffi found
2022/04/27 11:13:48 [DEBUG] unable to determine current version of package libpact_ffi this is probably because the package is currently being installed
Édouard Lopez
04/27/2022, 10:11 AM