Load a JSON from local storage #2529
Labels
conclusion: invalid
Issue/PR not valid
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Describe the request
I would like to be able to load a package JSON file (possibily with its matching signature!) from a local path and not an URL. This would be really helpful to CI jobs for testing JSON files before public release.
In this context, it would also be helpful to have the cli load only the specified file, ignoring any default index.
Describe the current behavior
--additional-urls
can be used to fetch data from extra JSONs in most cli commands. However, arguments which are not URLs have no effect. Also, there is no way to avoid loading the default index contents AFAICS.A current dirty "workaround" is to initialize the cli, then replace
~/.arduino15/package_index.json
with the desidered file contents.Arduino CLI version
0.35.2
Operating system
Linux
Operating system version
--
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: