You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-01 12:01:41 +03:00
Import Library Manager FAQ
An FAQ hosted in the `arduino/Arduino` repository's wiki:
https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ
has long served as the canonical guide for the traditional process for submitting libraries to the Library Manager index.
Now that the submission process and support for the process has been moved from `arduino/Arduino` to this dedicated
repository, it makes sense to also host the FAQ content here.
This commit imports the exact unmodified content of the FAQ from
819425389e
This commit is contained in:
95
FAQ.md
Normal file
95
FAQ.md
Normal file
@ -0,0 +1,95 @@
|
||||
### Library Manager overview
|
||||
|
||||
The Arduino Library Manager is a feature of the Arduino IDE (Sketch > Include Library > Manage Libraries...) which makes it easy for users to find, install, and update both official and 3rd party libraries. When your library is added to the library list every release/tag version of the library in your repository will automatically be made available for installation via Library Manager. The users can set their preferences to display an update notification when a new version of any installed library on the list is available and easily update to the new version with just a couple clicks. More information: \
|
||||
https://www.arduino.cc/en/Guide/Libraries#toc3
|
||||
|
||||
### How is the library list generated?
|
||||
|
||||
From a list of public Git repos, a job (a small program that runs regularly) fetches every tag, verifies library files and pushes the updated [list](http://downloads.arduino.cc/libraries/library_index.json) onto the Arduino download server.
|
||||
Only valid libraries and their tags are published. A library is **not valid** when:
|
||||
* it's not in [1.5 format](https://arduino.github.io/arduino-cli/latest/library-specification) and in particular it misses a [library.properties](https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata) file (1.5 format folder layout is not required)
|
||||
* its `name` field in library.properties starts with `Arduino`
|
||||
* its `url` field in library.properties is left blank
|
||||
* its version number is not [semver compliant](http://semver.org/)
|
||||
* it contains `.exe` files
|
||||
* it contains a `.development` file
|
||||
* it contains symlinks
|
||||
* our antivirus finds infected files
|
||||
|
||||
**The job runs every hour. If a new library has been released, you can expect it to be listed within the hour, but it might take longer**.
|
||||
|
||||
Arduino has created a command line tool to check libraries for compliance with all the Library Manager requirements:
|
||||
|
||||
https://github.com/arduino/arduino-lint
|
||||
|
||||
Arduino Lint is also available as a GitHub Actions action that can be used in the CI systems of Arduino library repositories to ensure continued compliance:
|
||||
|
||||
https://github.com/arduino/arduino-lint-action
|
||||
|
||||
### How can I add my library to Library Manager?
|
||||
|
||||
* Your library repository must be hosted on a major git-hosting website like GitHub, BitBucket or GitLab (other hosting site may be considered on request).
|
||||
* Ensure your library is compliant with [1.5 format](https://arduino.github.io/arduino-cli/latest/library-specification/) (1.5 format folder layout is not required)
|
||||
* Your library must not have the same library.properties `name` value (regardless of case) as another library previously added to the Library Manager index.
|
||||
* [Tag](https://git-scm.com/book/en/v2/Git-Basics-Tagging) it and push the tag (or create a release if you web hosting offers a way to do it, for example with [GitHub "releases"](https://help.github.com/articles/creating-releases/))
|
||||
* Open an issue on [Arduino's GitHub](https://github.com/arduino/Arduino/issues), specifying the URL of the repository from where to download your library. If you have multiple libraries to submit you are welcome to do them all in a single issue.
|
||||
* After some days, a member of the Arduino team will add your library to the Library Manager index and close the issue. Shortly after that your library will be available for installation via Library Manager.
|
||||
|
||||
### How can I publish a new release once my library is in the list?
|
||||
|
||||
Ensure you've changed version in your `library.properties`. Then tag your library once more and push the new tag (or create a release if your web hosting offers a way to do it, for example with GitHub "releases").
|
||||
Our indexer checks for new releases every hour and will eventually fetch and publish your new release.
|
||||
|
||||
### Sorry, I did something wrong! How can I change or unpublish an already published library?
|
||||
|
||||
In order to change contents of an already published library version, you can recreate its related tag.
|
||||
|
||||
In order to **un**publish a library version, delete its related tag/release.
|
||||
|
||||
Once you have done that, open an issue on [Arduino's GitHub](https://github.com/arduino/Arduino/issues), specifying the URL of the library repository and requesting that the library be updated.
|
||||
|
||||
### Why aren't releases of my library being picked up by Library Manager?
|
||||
|
||||
The Library Manager indexer job will not pick up releases which don't have a unique `version` value in library.properties. Remember to always update the `version` value in your library.properties *before* creating the tag or release.
|
||||
|
||||
Make sure your library meets all the requirements listed [here](#how-is-the-library-list-generated).
|
||||
|
||||
Changing the `name` value in your library.properties from the one it had at the time when the library was added to the Library Manager index will cause releases to be ignored. You need to request a name change, as explained [here](#how-can-i-change-my-librarys-name).
|
||||
|
||||
### How can I change my library's name?
|
||||
|
||||
For the sake of continuity, libraries in the Library Manager list are locked in to the name they had at the time they were added to the list. If you wish to change the name it will need to be done manually by request:
|
||||
1. Change the `name` value in your [library.properties file](https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format) and update the `version`.
|
||||
1. Create a release or tag that matches the updated `version` value in library.properties.
|
||||
1. Submit an [issue report](https://github.com/arduino/Arduino/issues/new) requesting the name be changed and the URL of your library's repository.
|
||||
|
||||
### How can I delete a library?
|
||||
|
||||
Open your sketchbook "libraries" folder with your OS file explorer (Windows: Explorer, Mac: Finder, Linux: Nautilus, kfiles...) and delete the folder containing your library.
|
||||
|
||||
##### Rationale
|
||||
|
||||
No, we don't have a delete button. Libraries managed by the Library Manager are mixed with those you've manually installed, maybe libraries you've written: making a mistake and deleting the wrong library is too easy. That's why trash bins exist. Since the IDE has no knowledge of your trash bin, we didn't implement a "delete" button.
|
||||
|
||||
## Limitations
|
||||
|
||||
### Is my Git repo OK?
|
||||
|
||||
Your repo is OK if its root folder contains the file `library.properties` and the rest of the library source code. If your library is stored in a subfolder, your repo is not OK and we can't include your library in the list.
|
||||
|
||||
### Are Git submodules supported?
|
||||
|
||||
No. The library archive distributed by Library Manager will only contain an empty folder where the submodule should be.
|
||||
|
||||
### Can I add my own URL with my own library list?
|
||||
|
||||
No. At the moment, the IDE handles one URL only, and that's written into the code (dev jargon: it's hardcoded), this is a known limitation.
|
||||
However, if you know your way through the code, you can change that URL with another one.
|
||||
|
||||
### When I install a library that I know depends on another library, will this other library be installed as well?
|
||||
|
||||
You can specify the dependencies of your library in the `depends` field of library.properties. As of Arduino IDE 1.8.10, the user will be prompted to install those libraries when they install your library via Library Manager. For more information, see the [library.properties file format documentation](https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format).
|
||||
|
||||
### Can I install multiple versions of one library and use the proper one in my sketches?
|
||||
|
||||
Library Manager installs libraries into your sketchbook "libraries" folder. Since you cannot create two folders with the same name, we can't install two versions of the same library. However, you can switch between library versions, by selecting the appropriate one from the version dropdown that pops up on Library Manager when more than one version is available.
|
14
README.md
14
README.md
@ -3,6 +3,10 @@
|
||||
This repository contains the list of libraries in the
|
||||
[Arduino Library Manager](https://www.arduino.cc/en/guide/libraries#toc3) index.
|
||||
|
||||
## Frequently asked questions
|
||||
|
||||
For more information about Arduino Library Manager and how the index is maintained, please see [the FAQ](FAQ.md).
|
||||
|
||||
## Adding a library to Library Manager
|
||||
|
||||
If you would like to have your library available for installation via Library Manager, just submit a
|
||||
@ -14,8 +18,8 @@ See the instructions below for detailed instructions on how to do this via the G
|
||||
### Instructions
|
||||
|
||||
1. You may want to first take a look at
|
||||
[the requirements for admission into the Arduino Library Manager index](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ).
|
||||
Each submission will be checked for compliance before being accepted.
|
||||
[the requirements for admission into the Arduino Library Manager index](FAQ.md). Each submission will be checked for
|
||||
compliance before being accepted.
|
||||
1. Open this link to [fork](https://guides.github.com/activities/forking/) this repository and edit the list via the
|
||||
GitHub web interface: https://github.com/arduino/library-registry/edit/main/repositories.txt
|
||||
1. Add the library repository's URL to the list. This should be the URL of the repository home page. For example:
|
||||
@ -70,10 +74,8 @@ description, making it clear that the URL is intentionally being removed.
|
||||
|
||||
## Report a problem with Library Manager
|
||||
|
||||
Please first take a look at
|
||||
[the Arduino Library Manager FAQ](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ). If a library release is
|
||||
missing from Library Manager, it is usually because it was not compliant with all the requirements listed in that
|
||||
document.
|
||||
Please first take a look at [the FAQ](FAQ.md). If a library release is missing from Library Manager, it is usually
|
||||
because it was not compliant with all the requirements listed in that document.
|
||||
|
||||
This repository is not an appropriate place to request support or report problems with a library. Check the library's
|
||||
own documentation for instructions or ask on the [Arduino Forum](https://forum.arduino.cc/).
|
||||
|
Reference in New Issue
Block a user