-
Notifications
You must be signed in to change notification settings - Fork 200
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
failed to install the newest version of winglang #1578
Comments
staycoolcall911
moved this from 🆕 New - not properly defined
to 🤝 Backlog - handoff to owners
in Wing
Feb 19, 2023
I'm getting the same. 0.5.51 works, 0.5.52 and 0.5.53 fails with this error |
Thanks @ainvoner and @trondhindenes - we're working on a fix. |
mergify bot
pushed a commit
that referenced
this issue
Feb 19, 2023
Fixes #1578 by bundling wasi-js so it does not run its own preinstall script. Pretty heavy handed, but not sure what else to do. The real fix needed is pnpm/only-allow#13 *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
github-project-automation
bot
moved this from 🤝 Backlog - handoff to owners
to ✅ Done
in Wing
Feb 19, 2023
Congrats! 🚀 This was released in Wing 0.5.54. |
Issue was finally fixed in Wing 0.5.55. |
mergify bot
pushed a commit
that referenced
this issue
Feb 20, 2023
This PR reintroduces #1571 with 3 additional changes to avoid [the last regression](#1578): - `patch-package` is used to mess with wasi-js, to remove the preinstall script from their package.json. The patching is performed during packaging, where it's actually effective (for downstream consumers). - wasi-js is included as a bundled dep for winglang to ensure that the patched `package.json` is appropriately patched in time to avoid any hooks. Normally this isn't needed with patch package, but due to the particular mutation I'm not sure this is avoidable - Added checks to hangar to ensure we avoid introducing script hooks. I verified that these tests pass with the latest version of the repo but fail the version noted in the regression. The changes from the original PR are untouched. *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Community Note
I tried this:
npm i -g winglang
I expected this:
winglang newest version to be installed globally while using npm version 8 or 9 major versions
Instead, this happened:
npm version 8.6.0
npm version 9.2.0
npm version 9.5.0
Component:
CLI
Wing Version:
0.5.53
Node.js Version:
v18.0.0
Platform(s):
MacOS, Windows
Anything else?
The text was updated successfully, but these errors were encountered: