Skip to content

Fix many broken cargo tests #1509

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix many broken cargo tests #1509

wants to merge 3 commits into from

Conversation

mshroyer
Copy link

This fixes most, but not all, test failures mentioned in #1508 . There are still one or two different failures on macOS 15.5 depending on the rust version used.

Template

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

mshroyer added 3 commits July 19, 2025 15:07
Version 0.2.74 doesn't build with rustc 1.88.0.  This also requires
modifying some test cases that previously expected specific behavior
when building older wasm-bindgen versions.
This test case creates a Cargo.toml fixture specifying version "0.3" of
wasm-bindgen-test as a dependency, then reads the lockfile and checks
the version of that dependency therein.  It previously checked for a
specific, hard-coded version of that dependency in the lock file, but
that fails once the published package has been updated.  Instead, we
should check that the version in the lockfile matches the semver
specified in Cargo.toml.
Documents preliminary steps that developers working on wasm-pack itself may
need to take before `cargo test` can succeed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant