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

Support different architectures #104

Merged
merged 10 commits into from
Jan 8, 2023
Merged

Support different architectures #104

merged 10 commits into from
Jan 8, 2023

Conversation

lydell
Copy link
Member

@lydell lydell commented Jan 7, 2023

  • Previously, elm-tooling only looked at the current operating system, not the architecture. Unsupported operating systems resulted in an early error. Regardless of architecture, x86_64 binaries were downloaded, which most of the time do not work when you try to execute them. Now, every tool provides different sets of supported os+arch combinations. Support is checked at install time – unsupported tools are logged, but not errors. This allows installing for example elm and elm-json on ARM 64, but skip elm-format (which has no ARM 64 binary). It also keeps backwards compatibility: Where elm-tooling install succeeded before, it should succeed now as well. Closes Wrong binary downloaded for aarch64 #93

  • For getExecutable, it now throws an error on unsupported platforms. In practice, this should result in a better error before: You get an explicit “platform not supported” message, instead of a more subtle failure when trying to execute a binary that does not work on your platform.

  • Adds ARM binaries for Elm (via https://github.com/lydell/compiler/releases/tag/0.19.1 and https://github.com/dmy/elm-raspberry-pi/releases/tag/20200611), elm-json and elm-test-rs.

  • Duplicates the darwin x86_64 binary for darwin ARM when there is no macOS ARM binary, allowing use with Rosetta.

This is also a first step towards #22

@lydell lydell marked this pull request as ready for review January 7, 2023 21:31
@lydell lydell merged commit 90bcb99 into main Jan 8, 2023
@lydell lydell deleted the arch branch January 8, 2023 11:56
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.

Wrong binary downloaded for aarch64
1 participant