-
Notifications
You must be signed in to change notification settings - Fork 79
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
pact.publishPacts(opts) missing #426
Comments
Ah, apologies. This one is my fault. There's a break between 13.13.2 and 13.13.3 because I removed a hack in the exports that this particular usage relies on. I'll make a PR to put it back. For now, you could work around it with:
(this will work in all versions) I believe the recommended path for publishing is to use the CLI binstubs anyway - is there a reason you need programmatic access? You can find examples of the CLI usage here, and if you need the documentation for the CLI, you can print the usage information with (For maintainers: I can't find the publishing pacts instructions from the pact-js documentation any more. I know it used to be there - am I just looking in the wrong place?) |
…rectly exported factory function. Fixes pact-foundation#426
…rectly exported factory function. Fixes pact-foundation#426
…rectly exported factory function. Fixes pact-foundation#426
Fix is up in #427. (despite what the build status checkmarks above suggest, the build is passing - click through to the PR for details). |
Thx Timothy for your very fast fix!!! For me the workaround with I am not the producer of this nice custom script. That is an old relict from another team. At some places I replaced such things by using the official pact-broker/cli image for pact publishing. To update the example code at https://github.com/pact-foundation/pact-js-core#pact-broker-publishing could help someone else. Best, Ingo |
Ah yes. In their defence, using this function in a custom script used to be the recommended way, but that changed in some release in the last couple of years.
This readme is intended for users of the pact-core package - which isn't intended to be end users. However, it does look like:
I'll leave those for the current maintainers to pick up. Thanks again for the report! (cc @mefellows and @YOU54F) - Also, my apologies to all for introducing a regression in a linting PR. |
Since 13.3.3 the function publishPacts() is not found.
Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
If I run the code from https://github.com/pact-foundation/pact-js-core#pact-broker-publishing it should publish pacts.
My version
Actual behaviour
The text was updated successfully, but these errors were encountered: