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

fix: allow npm binary upgrades #1439

Merged
merged 1 commit into from
Oct 29, 2024
Merged

fix: allow npm binary upgrades #1439

merged 1 commit into from
Oct 29, 2024

Conversation

net
Copy link
Contributor

@net net commented Oct 14, 2024

The version of the NPM binary-install package that wasm-pack uses stores binaries at an unversioned path in the binary-install package's directory.

This silently prevents version upgrades, as when upgrading to a different version of wasm-pack, binary-install believes the wasm-pack binary is already installed, and keeps using the old one. For example, upgrading the NPM wasm-pack package from 0.12.1 to 0.13.0 will continue using the 0.12.1 binary, and so has no effect (likely without the user noticing).

This moves the install directory to node_modules/wasm-pack/binary/, which should fix the issue.

Copy link
Member

@drager drager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@drager drager merged commit f177dd3 into rustwasm:master Oct 29, 2024
5 checks passed
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.

2 participants