Overrides: Make it clear that only VersionRange can be overriden
The code was always assuming overrides were VersionRange,
as trying to do 'dub add-override' would call 'Dependency'
constructor with a string, which forwards to VersionRange.fromString.
However, when using dub as a library, this assumption was much less obvious,
notably because the fields are public.
With this change, we make sure library users do not misuse overrides.
1 parent 718f40d commit 8a25429f80cd7b6e1e34504b39f9219537fc5320
@Geod24 Geod24 authored on 6 Aug 2022
Mathias LANG committed on 7 Aug 2022
Showing 2 changed files
View
source/dub/commandline.d
View
source/dub/packagemanager.d