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

Unable to configure multiple URLs via ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS #2643

Closed
3 tasks done
Links2004 opened this issue Jun 17, 2024 · 1 comment · Fixed by #2645
Closed
3 tasks done

Unable to configure multiple URLs via ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS #2643

Links2004 opened this issue Jun 17, 2024 · 1 comment · Fixed by #2645
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Links2004
Copy link

Links2004 commented Jun 17, 2024

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
@Links2004 Links2004 added the type: imperfection Perceived defect in any part of project label Jun 17, 2024
Links2004 added a commit to Links2004/arduinoWebSockets that referenced this issue Jun 17, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Jun 17, 2024
@per1234 per1234 changed the title multiple board urls do not longer work in v1.0.0 Unable to configure multiple URLs via ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS Jun 17, 2024
@alessio-perugini alessio-perugini self-assigned this Jun 18, 2024
@cmaglie
Copy link
Member

cmaglie commented Jun 18, 2024

@Links2004 thanks for the bug report, the nightly build should be updated soon with the fix.
The fix will be released also in version 1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
4 participants