Description
Describe the problem
The documentation at https://github.com/arduino/arduino-cli/blob/master/docs/package_index_json-specification.md states:
3rd party vendors should use a single PACKAGE_XXXX
and
name: the folder used for the installed cores.
However when the arduino ide installs the esp8266 version 2.1.2 from the sparkfun provided json file https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json the arduino IDE does not use the package name (esp8266) that contains the platform but uses "sparkfun".
Note that the sparfun provided json file has 2 packages (against the Arduino advice) one is named "Sparkfun" the other is called "esp8266".
I'm assuming Arduino uses the name of the first package in the json file which is not compliant with the documentation.
Can you clarify this as a bug in the code or a bug in the documentation?
To reproduce
Install the esp8266 version 2.1.2 from the sparkfun provided json file https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
The platform is installed in packages/sparkfun
Expected behavior
Expected the platform is installed in packages/esp8266
Arduino CLI version
all
Operating system
N/A
Operating system version
windows 11
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