-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider verification > auto-downloading plugins feature doesn't work as expected #44
Comments
The problem is: the version |
I can't see that version "0.0" in here https://github.com/pact-foundation/pact-plugins/blob/main/repository/repository.index I wonder where the index is coming from, maybe the plugin driver needs updating in the ffi, if it provides the registry index? can you check the shasum to see if it matches that in the repo? |
@YOU54F Yes, I found the root cause of the bug and created a pull request for it here pact-foundation/pact-reference#308 |
Run provider verification alone did trigger auto-downloading required plugin, but it didn't work as expected.
How to reproduce:
git clone https://github.com/tienvx/pact-php-csv.git
composer install
rm example/consumer/tests/Contract/pacts/*.json
PACT_LOGLEVEL=debug phpunit --testsuite="Example Consumer"
(to generate pact files. csv plugin is downloaded to~/.pact
if not downloaded)rm -rf ~/.pact
PACT_LOGLEVEL=debug phpunit --testsuite="Example Provider"
~/.pact
, test is passedLog
Output of
ls ~/.pact/plugins/
Pact file
The text was updated successfully, but these errors were encountered: