Mark package as incompatible with a specific version of another package

Topics: General
Jan 4, 2013 at 9:54 AM


I wonder if it's possible to add functionality that specifies a package as incompatible with a specific version of another package.

Say for example I've got

Package A v1

Package B v1

Package B v2

Package A v1 does not work with v1 of Package B. Presumably in this case the best thing to do would be to specify that Package A is dependant on Package B >= v2, but what happens if Package A isn't actually dependant on Package B, just incompatible with one version, or in fact if it's incompatible with *both* versions of Package B?

If someone tries to install Package A v1 and Package B v1 (or v2 in the latter case) is installed it shouldn't be allowed or vice-versa.

Hope this makes sense.

Is this somehow doable at the moment ? And if not, is it doable in the future ?





Jan 4, 2013 at 11:04 PM

It is not doable at the moment, and we currently don't have a plan to do it in the future.

When you say the two packages are incompatible with each other, what exactly does it mean? Does it cause compile error or runtime error?

The best you can do now is to add a readme.txt file at the root of your package and states clearly which packages are not compatible with your package.