-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Foo #2
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
Closed
Closed
Foo #2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the full list of repositories for the libraries of the Arduino Library Manager index.
Submissions of libraries to the Arduino Library Manager index can be done by submitting a pull request adding repositor URLs to the list. The submissions are checked for compliance wih the requirements for addition to the index and as soon as they are passing the pull request is merged and the entries are pushed to the index source file.
It's possible to accomplish the same thing in a more simple and secure manner by using the submission list.
With the current submission system, it's common for people to provide the tag/release URL rather than the repository URL. I think it likely the same sort of thing will occur with the new system. Previously, a very naive check was done for the path component of the URL to have two levels. It turns out that the Gitlab repository URLs have more levels than that. The superior approach is to use `git ls-remote` to verify that the URL is a Git repository.
Rather that committing directly to the index source file repository, save the index entry to a workflow artifact, which will be consumed by the system that updates the index source file.
This isolates the PR branch checkout from the request parsing process.
I had intended to test these out but didn't get around to it. The workflow_dispatch might be convenient, but it's not at all essential since the same thing can be accomplished by commenting on the PR.
The index source file contains the normalized URL and the metadata that can't be derived from the library releases ("types" data and locked name) for each of the libraries in the Library Manager index. It's most appropriate to store it in the same repository as the submission list.
This avoids the need to checkout the PR head ref.
Update repositories.txt
Pushed to wrong remote, sorry. |
Gitshaoxiang
added a commit
to m5stack/library-registry
that referenced
this pull request
Mar 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hacking