-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
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 URL
To 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
- verify that our URL is at the end of the
board_manager
group ofadditional_urls
arduino-cli config add board_manager.additional_urls https://my.url/package_mycustom_index.json
arduino-cli config dump
- verify that the URL is twice at the end of the
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 URL
Expected 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):
- OS: Mac OS
- Version: 11.5.2
Additional context
n/a
henrygab
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project