dub
dub copied to clipboard
`dub lint` will use outdated packages
System information
- dub version: 1.28.0
- OS Platform and distribution: all
- compiler version dmd32 v2.099.0-dirty
Bug Description
at https://github.com/dlang/dub/blob/master/source/dub/dub.d#L802, the version specifier for dscanner is set to ">=0.0.0". this means that any out-of-date version currently on one's computer is used rather than the latest version available.
How to reproduce?
ensure version 0.11.1 of dscanner is the oldest available in the dub package cache.
run dub lint.
observe that the old version spams deprecation warnings instead of being updated.
Expected Behavior
the latest available version of dscanner should be used.
Workaround
deleting the cached dscanner package will force dub to re-aquire the latest available version.
see also: https://github.com/dlang-community/dsymbol/issues/171
Thank you for investigating the cause of the problem, @Moth-Tolias!