dub icon indicating copy to clipboard operation
dub copied to clipboard

`dub lint` will use outdated packages

Open Moth-Tolias opened this issue 3 years ago • 1 comments
trafficstars

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

Moth-Tolias avatar Apr 11 '22 22:04 Moth-Tolias

Thank you for investigating the cause of the problem, @Moth-Tolias!

veelo avatar May 31 '22 22:05 veelo