Darwin/amd64 installs wrong tools (darwin/amd64) #751
Labels
architecture: arm
Specific to ARM host architecture
os: macos
Specific to macOS operating system
priority: high
Resolution is a high priority
type: imperfection
Perceived defect in any part of project
Describe the problem
Running the getting started on MacOS with Amd64 architecture causes the agent to download the wrong tool system (when multiple macOS systems are available for a tool) an example of this is the
arduino-fwuploader
which is available both for amd64 and arm64.To reproduce
Connect a board with an old fw (for example Nina 1.4.3) to the PC and add a new device in Arduino IoT Cloud. Perform the getting started. It should fail trying to run the
arduino-fwuploader
with an error similar toBad CPU type in executable
.(The problem is that the agent has downloaded the arm64 binary instead of the amd64 one)
Expected behavior
The agent should download the correct binary
Arduino Create Agent version
1.2.7
Operating system
macOS
Operating system version
N/A
Browser
N/A
Browser version
N/A
Additional context
The problem should be fixed in
arduino-create-agent/tools/download.go
Lines 67 to 74 in 58d2960
Even better would be to use the Arduino CLI way of detecting and downloading a tool: https://github.com/arduino/arduino-cli/blob/08d746dd9c31ce75b94a2c3caced3e34b6687f6a/arduino/cores/tools.go#L126-L213
Issue checklist
The text was updated successfully, but these errors were encountered: