Skip to content

Unable to configure multiple URLs via ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS #2643

Closed
@Links2004

Description

@Links2004

Describe the problem

Multiple board urls in the ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS configuration environment variable are not longer working.

To reproduce

nightly broken:

$ export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://espressif.github.io/arduino-esp32/package_esp32_index.json https://arduino.esp8266.com/stable/package_esp8266com_index.json"
$ ./arduino-cli version
arduino-cli  Version: nightly-20240617 Commit: c9c90df Date: 2024-06-17T01:33:09Z
$ ./arduino-cli core update-index 
Downloading index: package_index.tar.bz2 downloaded                                                  
Downloading index: package_esp8266com_index.json Server responded with: 404 Not Found                
Some indexes could not be updated.

V1.0.0 broken:

$ export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://espressif.github.io/arduino-esp32/package_esp32_index.json https://arduino.esp8266.com/stable/package_esp8266com_index.json"
$ ./arduino-cli version
arduino-cli  Version: 1.0.0 Commit: 05c9852a Date: 2024-06-12T14:13:32Z
$ ./arduino-cli core update-index 
Downloading index: package_index.tar.bz2 downloaded                                                  
Downloading index: package_esp8266com_index.json Server responded with: 404 Not Found                
Some indexes could not be updated.

V0.35.3 ok:

$ export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS="https://espressif.github.io/arduino-esp32/package_esp32_index.json https://arduino.esp8266.com/stable/package_esp8266com_index.json"
$ arduino-cli version
arduino-cli  Version: 0.35.3-arch Commit: 95cfd654fe0dd6b07e903d3132c0faceabfbe9e3 Date: 
$  arduino-cli core update-index 
Downloading index: package_index.tar.bz2 downloaded                                                                                                           
Downloading index: package_esp32_index.json downloaded                                                                                                        
Downloading index: package_esp8266com_index.json downloaded  

Expected behavior

arduino-cli core update-index works the same as it is working with 0.35.3:

https://arduino.github.io/arduino-cli/dev/configuration/#environment-variables

ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS environment variables can be a list of space-separated URLs.

Arduino CLI version

arduino-cli Version: nightly-20240617 Commit: c9c90df Date: 2024-06-17T01:33:09Z

Operating system

Linux

Operating system version

arch + github actions

Additional context

The regression point is 4c50868

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions