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

Improve error message when running on unsupported MUSL Linux #5454

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

lukastaegert
Copy link
Member

@lukastaegert lukastaegert commented Apr 5, 2024

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

When a user is running an unsupported MUSL Linux machine, the error message can be misleading as it states that the platform is unsupported while only the MUSL flavor may be unsupported.
This improves the error message by adding (musl) next to the platform in those situations in the error message, so that it matches the format of supported architectures in the list below, e.g.

Error: Your current platform "linux (musl)" and architecture "arm" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.

The following platform-architecture combinations are supported:
android-arm
android-arm64
darwin-arm64
darwin-x64
linux-arm
linux-arm64
linux-arm64 (musl)
linux-ppc64le
linux-riscv64
linux-s390x
linux-x64
linux-x64 (musl)
win32-arm64
win32-ia32
win32-x64

Copy link

vercel bot commented Apr 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 1:11pm

Copy link

github-actions bot commented Apr 5, 2024

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#improve-no-musl-error

Notice: Ensure you have installed Rust nightly. If you haven't installed it yet, please first see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust, then see https://rust-lang.github.io/rustup/concepts/channels.html to learn how to install Rust nightly.

or load it into the REPL:
https://rollup-m8916ae2e-rollup-js.vercel.app/repl/?pr=5454

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 98.79%. Comparing base (1b85663) to head (95da7f2).

Files Patch % Lines
native.js 40.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5454      +/-   ##
==========================================
- Coverage   98.79%   98.79%   -0.01%     
==========================================
  Files         238      238              
  Lines        9446     9445       -1     
  Branches     2403     2403              
==========================================
- Hits         9332     9331       -1     
  Misses         48       48              
  Partials       66       66              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lukastaegert lukastaegert merged commit 555982a into master Apr 7, 2024
28 of 30 checks passed
@lukastaegert lukastaegert deleted the improve-no-musl-error branch April 7, 2024 07:22
Copy link

github-actions bot commented Apr 7, 2024

This PR has been released as part of rollup@4.14.1. You can test it via npm install rollup.

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.

None yet

1 participant