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

Fix installation script bugs affecting Apple M1 users #1721

Merged
merged 1 commit into from
May 2, 2022
Merged

Fix installation script bugs affecting Apple M1 users #1721

merged 1 commit into from
May 2, 2022

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented May 2, 2022

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
    (testing is done in the assets repo, but they were not updated there due to the lack of an M1 runner
  • [N/A] Docs have been added / updated (for bug fixes / features)
  • [N/A] UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

An installation script contained in this repository provides convenient installation of Arduino CLI:

https://arduino.github.io/arduino-cli/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:

What is the new behavior?

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:

Those are pulled into the Arduino CLI project here.

Does this PR introduce a breaking change, and is titled accordingly?

No breaking change

The script which provides convenient installation of Arduino CLI is hosted and maintained in a separate repository which
contains the collection of reusable tooling project assets. Some defects were 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.

These defects were fixed and some general improvements made to the related code.

- Remove broken frivolous function from install script
  arduino/tooling-project-assets@127116b
- Remove unnecessary use of eval from install script
  arduino/tooling-project-assets@e2b5740
- Fallback to x86-64 release when macOS ARM 64-bit build not available
  arduino/tooling-project-assets@d8c59e3

Those are pulled into the Arduino CLI project here.
@per1234 per1234 added os: macos Specific to macOS operating system architecture: arm Specific to ARM host architecture topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels May 2, 2022
@per1234 per1234 self-assigned this May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture: arm Specific to ARM host architecture os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants