Skip to content
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

Feature request: Field incompatible-with in library.properties #995

Open
bengtmartensson opened this issue Apr 5, 2020 · 2 comments
Open
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@bengtmartensson
Copy link

bengtmartensson commented Apr 5, 2020

Some libraries are incompatible with others. Fact of life. I propose a field incompatible-with in library.properties, analogues to depends and with the same semantic (several entries divided by commas), but with the opposite semantic: The library manager should refuse to install a library if any of the libraries in incompatible-with is present. Ideally there should be a granularity down to version too, but let's leave that out for the moment (there is no versions in depends either).

Only in this way it is possible to cleanly publish a completely compatible replacement for an existing library.

Additional context

Related

@per1234 per1234 transferred this issue from arduino/Arduino Sep 30, 2020
@per1234 per1234 added the type: enhancement Proposed improvement label Sep 30, 2020
@ubidefeo
Copy link

@bengtmartensson
I like the concept, but refusing to install a library because incompatible with other ones already present would not be ideal.
It is down to the sketch level that you want such incompatibility to alert the user

@matthijskooijman
Copy link
Collaborator

Also, often such "incompatible" libraries can still be made compatible by e.g. including an "ImprovedFoo.h" or "OriginalFoo.h" header file that is unique to the improved and/or original version, so a sketch can select one or the other.

@per1234 per1234 reopened this Mar 30, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants