Hello once again. My provider verification appears...
# pact-go
j
Hello once again. My provider verification appears to not be able to find my consumer pacts. I have a consumer pact published with a
Consumer Version
and a
branch
associated with it. I can see the unverified pact in the UI. My provider uses the following selector and is on a branch with an identical name as the consumer.
Copy code
[]types.ConsumerVersionSelector{
			{
				MatchingBranch: true,
			},
			{
				MainBranch: true,
			},
			{
				Deployed: true,
			},
		}
When I run the verification pact, I get the following log though:
pact.go:421: no pacts found to verify
hmm. this appears to be happening for my main branch too.
w
That looks like a bit of a weird version selector to me. Not sure what version of pact-go you’re using either, but I’m on the 2.x.x branch
Copy code
ConsumerVersionSelectors: []provider.Selector{
			&provider.ConsumerVersionSelector{
				Branch: "main",
				Latest: true,
			},
		}
j
interesting. I'll try changing my selector.
w
Yeah not saying for sure that that’s defo the issue, and I know plenty of things have changed between versions of pact-go
I’m sure I took my stuff from the examples in pact-go