Open LunaTheFoxgirl opened 1 year ago
from and to wouldn't be able to be version ranges here, since it's quite ambiguous what they would actually mean.
Instead we should just use
provides "bindbc-opengl" version=">=1.0.0 <2.0.0"
and use dub's regular version range syntax here
Some projects on the dub database are meant as drop-in replacements and are API compatible with other projects, it would be a good idea to add a provides/replaces tag to the dub file so that during package resolution, if a top level project uses a drop-in replacement sub-packages will use that replacement as well.
This tag should additionally allow specifying a range of versions which are compatible.
Example:
This file would cause a project using i2d-opengl, to use i2d-opengl for any sub-dependencies using bindbc-opengl, just for the compilation of that package.
Omitting
from
would make the package resolution count the replacement from all versions from0.0.0
toto
. Omittingto
would make the provides be unbounded, replacing any versions afterfrom
Omitting both, would make the package replace any version of the package it replaces.