Skip to content
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

build: Ensure pinned versions when installing wasm-pack #37568

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

camscale
Copy link
Contributor

@camscale camscale commented Jan 30, 2024

When installing wasm-pack with cargo, use the --locked flag to
ensure the versions referenced in the Cargo.lock file are used and not
any newer versions. This creates a repeatable build and insulates us
from upstream breakage in new versions.

Also pre-build wasm-bindgen-cli first with --locked and tell wasm-pack
not to install it, as when it installs it, it does not use --locked and we see
the same build failure there.

In particular an upstream version change included the hoot-0.1.2
dependency on a new build which fails to build with rust 1.71.1, which
is the version we are using.

Update e ref to get matching changes from teleport.e

Link: rustwasm/wasm-pack#1365

@camscale camscale added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 labels Jan 30, 2024
@zmb3 zmb3 enabled auto-merge January 30, 2024 23:12
@zmb3 zmb3 added this pull request to the merge queue Jan 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2024
@camscale camscale added this pull request to the merge queue Jan 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 31, 2024
When installing `wasm-pack` with `cargo`, use the `--locked` flag to
ensure the versions referenced in the Cargo.lock file are used and not
any newer versions. This creates a repeatable build and insulates us
from upstream breakage in new versions.

In particular an upstream version change included the hoot-0.1.2
dependency on a new build which fails to build with rust 1.71.1, which
is the version we are using.

Link: rustwasm/wasm-pack#1365
@camscale camscale added this pull request to the merge queue Jan 31, 2024
Merged via the queue into master with commit 6a5b9ee Jan 31, 2024
41 checks passed
@camscale camscale deleted the camh/locked-cargo branch January 31, 2024 01:59
@public-teleport-github-review-bot

@camscale See the table below for backport results.

Branch Result
branch/v15 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants