Skip to content

Load a JSON from local storage #2529

Closed as not planned
Closed as not planned
@pillo79

Description

@pillo79

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

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions