Repository navigation
fix(pact_verifier_cli): build against xrust 2.4 - #610
Merged
Merged
Conversation
Nothing exercised the XSLT step of the HTML report, so an xrust upgrade could change its output unnoticed. The snapshot pins the output of the default stylesheet for a failing result with a notice and a passing interaction. Assisted-by: Claude Code:claude-opus-5-5
xrust broke its API in two minor releases, and the old requirement `xrust = "2.0.3"` admitted both: - 2.3.0 gave `ParseError::MissingNameSpace` the fields `prefix`, `nsuri` and `message`. - 2.4.0 renamed `StaticContextBuilder::fetcher` to `external`. The callback for external resources now takes `&External` and returns `Sequence<N>`, both in the builder and in `xslt::from_document`. Any build that resolved dependencies afresh, such as `cargo install` without `--locked` or a downstream lockfile update, picked up 2.4.1 and failed to compile the report module. The requirement is now 2.4.1, the first release with the current API. The HTML report snapshot is unchanged under 2.4.1. Assisted-by: Claude Code:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pact_verifier_cli1.5.0 fails to compile when dependency resolution picks upxrust2.4.x, which the requirementxrust = "2.0.3"admits. This hitscargo install pact_verifier_cliwithout--locked, and any downstream lockfile update. pact-foundation/pact-cli#210 is one example.xrustbroke its API in two minor releases:ParseError::MissingNameSpacethe fieldsprefix,nsuriandmessage.StaticContextBuilder::fetchertoexternal. The external-resource callback now takes&Externaland returnsSequence<N>, in the builder and inxslt::from_document.Commits
xrust2.2.0, the version in the lockfile onmaster.reports/mod.rsto the 2.4 API and raises the requirement toxrust = "2.4.1". The lockfile changes onlyxrustandqualname, which onlyxrustuses.The HTML snapshot is byte-identical under 2.4.1.
Alternative considered
Capping the requirement at
~2.2would also fix the build. It would leave the crate on an oldxrustand would need lifting later anyway, so this PR ports the code instead.Once this merges, a
pact_verifier_cli1.5.1 release unblocks pact-cli.