Skip to content

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

Open
@bengtmartensson

Description

@bengtmartensson

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

Activity

transferred this issue fromarduino/Arduinoon Sep 30, 2020
ubidefeo

ubidefeo commented on Sep 30, 2020

@ubidefeo

@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

matthijskooijman commented on Sep 30, 2020

@matthijskooijman
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Feature request: Field incompatible-with in library.properties · Issue #995 · arduino/arduino-cli