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

Load a JSON from local storage #2529

Closed
3 tasks done
pillo79 opened this issue Feb 8, 2024 · 1 comment
Closed
3 tasks done

Load a JSON from local storage #2529

pillo79 opened this issue Feb 8, 2024 · 1 comment
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@pillo79
Copy link
Contributor

pillo79 commented Feb 8, 2024

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
@pillo79 pillo79 added the type: enhancement Proposed improvement label Feb 8, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Feb 8, 2024
@per1234 per1234 self-assigned this Feb 8, 2024
@per1234
Copy link
Contributor

per1234 commented Feb 8, 2024

Hi @pillo79.

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.

You can do this by using the file scheme in the URL.

Also, there is no way to avoid loading the default index contents AFAICS.

I concur. You are welcome to open a dedicated feature request issue if you think this would be useful.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants