Fix installation script bugs affecting Apple M1 users #376
+60
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An installation script contained in this repository provides convenient installation of Arduino CLI:
https://arduino.github.io/arduino-lint/dev/installation/#use-the-install-script
Some defects are present in the script's handling of lack of a build for a specific host architecture, which manifested when users with Apple M1 systems attempted to use it:
The script is hosted and maintained in a separate repository as part of a collection of reusable tooling project assets.
The defects in the script were fixed, and some general improvements made to the related code, in that repository:
arduino/tooling-project-assets@127116b#gitext://gotocommit/127116b30163e5c63384d6a46c57f9f5d093d61a
arduino/tooling-project-assets@e2b5740#gitext://gotocommit/e2b5740daf890aa20d27d901ee8fc11743b38036
arduino/tooling-project-assets@d8c59e3#gitext://gotocommit/d8c59e3caac6182077e9bbefe3a5209c3ec96782
Those are pulled into the Arduino Lint project here.