Command config add
for additional URLs does not check presence of URL in board_manager
tree
#1437
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
When manually adding an additional url via
arduino-cli config add ...
the command does not check for existing matching entries in the list, hence generating multiple entries for the same URLTo Reproduce
Steps to reproduce the behavior:
arduino-cli config add board_manager.additional_urls https://my.url/package_mycustom_index.json
arduino-cli config dump
board_manager
group ofadditional_urls
arduino-cli config add board_manager.additional_urls https://my.url/package_mycustom_index.json
arduino-cli config dump
board_manager
group ofadditional_urls
arduino-cli config remove board_manager.additional_urls https://my.url/package_mycustom_index.json
remove
will remove any istance of said URLExpected behavior
The command should check for the presence of said URL and not add it if already there
Screenshots
n/a
Desktop (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: