GitHub
03/06/2025, 7:15 PMDavid Gibson
03/07/2025, 10:52 AMDavid Gibson
03/07/2025, 10:54 AMMartin Mineo
03/07/2025, 1:16 PMGitHub
03/24/2025, 1:04 AMGitHub
03/24/2025, 1:34 AMSrinivas Nali
04/01/2025, 3:04 PMgo install <http://github.com/pact-foundation/pact-go/v2@latest|github.com/pact-foundation/pact-go/v2@latest>
fails, but if I remove @latest, it works fine.
Would it be possible to document Go version compatibility in the README? That would be really helpful.
ThanksErich Zimmerman
04/01/2025, 9:35 PMYevhen Nosulko
05/02/2025, 9:45 AM@Pact(provider = PROVIDER, consumer = CONSUMER)
public RequestResponsePact operationalHealth(PactDslWithProvider builder) {
return builder
.given("IFE functionalHealth is Operational")
.uponReceiving("A request for IFE availability status Operational")
...
...
...
this will generate a contract where provider state is defined as an Array of Strings:
"interactions": [
{
"description": "A request for IFE availability status Operational",
"providerStates": [
{
"name": "IFE functionalHealth is Operational"
}
],
on the provider side we have a Provider test written in Golang with pact-go, snippet as follows:
StateHandlers: models.StateHandlers{
"IFE functionalHealth is Operational": func(setup bool, ps models.ProviderState) (models.ProviderStateResponse, error) {
...
...
...
and the problem is when I run this test it doesn't seem to read the provider states at all because when I tried to pusposely break it it was still passing.
I went ahead and created a similar consumer test in Golang, like this:
mockProvider.
AddInteraction().
Given("IFE functionalHealth is Operational").
UponReceiving("A request for IFE availability status Operational").
...
...
...
...
after running this test I got the contract JSON where provider state is defined as String:
"interactions": [
{
"description": "A request for IFE availability status Operational",
"providerState": "IFE functionalHealth is Operational",
this contract is then consumed and parsed correctly by provider test because when I try to break it I see a corresponding provider state failing.
Are you guys aware of similar issues? If so how do I go about addressing it? Thank you in advance.James P
07/01/2025, 7:07 PMIgnoreNoPactsToVerify?Michiel Rogissart
07/15/2025, 7:22 AMExecuteTest methods of the different MockProviders a bit like so
mockProvider1.ExecuteTest(t, func(service1Config consumer.MockServerConfig) {
err := mockProvider2.ExecuteTest(t, func(service2Config consumer.MockServerConfig) {
c, err := createClient(service1Config, service2Config)
// test logic here
})
})
Is this the way to do it or am I doing something wrong? Should I not use contract testing in the integration tests, or am I missing a pattern in the pact-go lib?Dominick Campbell
07/18/2025, 8:20 PMaofadero
08/28/2025, 3:47 PMmain.go file for a service, there is a lot of setup (e.g grpc server, db connections, config refs) and we would like to abstract this to a service file so that it's no longer done in main.go. Is this the right approach or are there better established patterns to use?Paul
09/12/2025, 5:17 AMElson Ho
09/19/2025, 2:31 AMKieran McCarthy
10/11/2025, 10:48 AMGitHub
10/31/2025, 12:24 AMBrad Momberger
11/21/2025, 3:26 PM# <http://github.com/pact-foundation/pact-go/v2/internal/native|github.com/pact-foundation/pact-go/v2/internal/native>
cgo: inconsistent definitions for C.pactffi_given_with_param
cgo: inconsistent definitions for C.pactffi_given
I don’t yet know how to do a reduced case for a GH issue, or if it’s even a real issue, so I’m looking for suggestions as to why this might be happening on my platform and how to work around it. Thanks for your help.Paul Williams
03/02/2026, 8:38 AMNorbert Gulácsi
03/25/2026, 12:17 PMGitHub
04/22/2026, 4:20 AMStanislav Vodetskyi
05/21/2026, 8:07 PMGitHub
05/24/2026, 11:17 AMGitHub
05/26/2026, 6:44 AMGitHub
08/05/2026, 3:20 AMGitHub
08/07/2026, 1:16 PMStanislav Vodetskyi
08/26/2026, 2:28 AMMatt (pactflow.io / pact-js / pact-go)
GitHub
08/26/2026, 6:31 AMGitHub
09/16/2026, 11:58 AM