-
Notifications
You must be signed in to change notification settings - Fork 171
Update npm install command to use --os flag #985
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 145beb3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
||
const additionalArgs = installOptions.additionalArgs ?? ""; | ||
const installCommand = `npm install --platform=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`; | ||
const installCommand = `npm install --os=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should provide both if it does not cause any issue, not just replace it
@@ -0,0 +1,5 @@ | |||
--- | |||
"@opennextjs/aws": minor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a patch, not a minor
// For SHARP_IGNORE_GLOBAL_LIBVIPS see: https://github.com/lovell/sharp/blob/main/docs/install.md#aws-lambda | ||
|
||
const sharpVersion = process.env.SHARP_VERSION ?? "0.32.6"; | ||
const sharpVersion = process.env.SHARP_VERSION ?? "0.34.4"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to bump that one ? Did you test it against other versions of Next ?
OpenNext support Next 12, it has to work from Next 12 to 15
commit: |
Resolves a problem where sharp after 0.36.2 would not install correctly.
--os
instead of platformsharp
to latest version