-
-
Notifications
You must be signed in to change notification settings - Fork 398
Install library or core from GitHub branch or commit #1113
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
Comments
I think it would be unnecessarily limiting to use the library name, because that only allows installing libraries that are in the Library Manager index. Better would be to allow specifying a Git ref via the existing
It would be necessary to specify the repository URL. It it also necessary to specify the platform name because the repository doesn't contain this information. Another consideration is that not all platforms are in the root of the repository. Some (e.g., MightyCore) are structured with the platform under the architecture folder to allow easy manual installation. So to be universally useful this command would either need to allow the user to specify the installation source path relative to the root of the repository, or to automagically detect this path (e.g., search recusively for boards.txt) |
Another more modular approach could be to just accept a local path, and let the user clone the repo instead of embedding the git clone semantics in arduino-cli. |
@alranel you can install libraries from local paths by supplying the path to a zip file with
|
Yeah @ubidefeo, however that's not available for cores :) |
This is done by providing the desired revision in the fragment, e.g. `…/Library.git#0.1.0`. When set, this disables the clone depth limit so all remote references will be available.
This is done by providing the desired revision in the fragment, e.g. `…/Library.git#0.1.0`. When set, this disables the clone depth limit so all remote references will be available.
This is done by providing the desired revision in the fragment, e.g. `…/Library.git#0.1.0`. When set, this disables the clone depth limit so all remote references will be available.
This is done by providing the desired revision in the fragment, e.g. `…/Library.git#0.1.0`. When set, this disables the clone depth limit so all remote references will be available.
This is done by providing the desired revision in the fragment, e.g. `…/Library.git#0.1.0`. When set, this disables the clone depth limit so all remote references will be available.
Feature Request
In order to assist in development and testing, I would like to request the ability to install a core or library from a GitHub based branch or commit. Something like the following is what I was thinking.
$ arduino-cli core install arduino:megaavr@branch:master
or
$ arduino-cli lib install WiFiNINA@commit:473d8b0
The text was updated successfully, but these errors were encountered: