Expose Go API functions for loading library registry data files #57
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.
Since they were intended only for use in the "sync_libraries" application, the module's packages were made
internal
to clearly communicate that they are not part of a public API so that we will not need to be concerned with unintentional impacts on other projects if breaking changes to the internal API are required in the course of development on the code base.Selected parts of the API may be exposed externally as they are determined to be useful for other projects. Such a case has arisen with the need to validate the library registry data file format:
https://github.com/arduino/library-registry/tree/production/.github/workflows/assets/validate-registry
In order to facilitate the use of this project as a dependency in Go programs via the Go modules system, the module path was renamed from
arduino.cc/repository
togithub.com/arduino/libraries-repository-engine
. The previous module path only served as an arbitrary identifier, but did not have the expected support forgo get
/go install
:Although the module path renaming would generally be considered a breaking change, since the API of the project was previously only considered to be:
none of which are affected by this change, I'm not sure that we need to consider the path change breaking at this stage but this PR adds a Go API to the project's supported public interfaces and after it is released we will recognize it as such.