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

Platforms installed in the sketchbook/user dir should have priority #2766

Open
3 tasks done
cmaglie opened this issue Nov 27, 2024 · 0 comments
Open
3 tasks done

Platforms installed in the sketchbook/user dir should have priority #2766

cmaglie opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
type: imperfection Perceived defect in any part of project

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 27, 2024

Describe the problem

A platform installed in the sketchbook/user directory under the hardware folder should take priority over another platform with matching VENDOR and ARCHITECTURE installed via Board Manager, and this is currently not happening.

The documentation should reflect this behavior.

/cc @thernstig

To reproduce

This is an example for Linux, but it can be easily adapted for other OS:

$ arduino-cli core install arduino:[email protected]
[...]
$ mkdir -p ~/Arduino/hardware/arduino/
$ cp -a ~/.arduino15/packages/arduino/hardware/samd/1.8.13 ~/Arduino/hardware/arduino/samd
$ arduino-cli core install arduino:[email protected]
$ arduino-cli core list | grep samd
arduino:samd             1.8.14           1.8.14           Arduino SAMD Boards (32-bits ARM Cortex-M0+)

Expected behavior

The version displayed is 1.8.14 but it should be 1.8.13 since it's the one loaded in the sketchbook.

Arduino CLI version

nightly

Operating system

N/A

Operating system version

N/A

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@cmaglie cmaglie added the type: imperfection Perceived defect in any part of project label Nov 27, 2024
@cmaglie cmaglie self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant