Skip to content

Remove superfluous and broken manifest file #133

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

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Remove superfluous and broken manifest file #133

merged 1 commit into from
Apr 25, 2022

Conversation

per1234
Copy link

@per1234 per1234 commented Apr 9, 2022

library.json is PlatformIO's native library manifest file but Arduino's library.properties is also supported by PlatformIO:

https://docs.platformio.org/en/latest/librarymanager/creating.html#creating-library

The library.json file was missing the required version field:

https://docs.platformio.org/en/latest/librarymanager/config.html#version

Although it could be added, experience with other libraries (arduino-libraries/NTPClient#152) indicates that it is not really realistic to expect two manifest files to be properly maintained.

Since the Arduino development software and the Arduino Library Manager require library.properties, if there is to be only one then it must be library.properties that is kept and library.json that is removed.

`library.json` is PlatformIO's native library manifest file but Arduino's `library.properties` is also supported by
PlatformIO:

https://docs.platformio.org/en/latest/librarymanager/creating.html#creating-library

The `library.json` file was missing the required `version` field:

https://docs.platformio.org/en/latest/librarymanager/config.html#version

Although it could be added, experience with other libraries indicates that it is not really realistic to expect two
manifest files to be properly maintained.

Since the Arduino development software and the Arduino Library Manager requires `library.properties`, if we are to have
only one the choice of keeping `library.properties` and removing `library.json` is clear.
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: infrastructure Related to project infrastructure labels Apr 9, 2022
@per1234 per1234 requested review from aentinger and Rocketct April 9, 2022 17:10
Copy link

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thank you @per1234 🚀

@aentinger aentinger merged commit b7fe7f7 into arduino-libraries:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants