https://pact.io logo
#pact-go
Title
# pact-go
m

Matt (pactflow.io / pact-js / pact-go)

04/25/2022, 9:11 AM
Have you installed the pact_ffi lib?
é

Édouard Lopez

04/25/2022, 3:05 PM
Yep:
Copy code
❯ ls ~/.local/lib/
libpact_ffi.so
m

Matt (pactflow.io / pact-js / pact-go)

04/25/2022, 10:12 PM
Hmmmm I don't think it can go there
é

Édouard Lopez

04/27/2022, 9:11 AM
Same error when I
Copy code
❯ sudo cp ~/.local/lib/libpact_ffi.so /usr/local/lib/
The issue seem to be with `gotestsum`:
Copy code
❯ 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
Copy code
❯ 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
3 Views