Skip to content

Commit e29a366

Browse files
committed
Deprecate an unused PackageManager.getPackage ovrld
This overload is not used anywhere in `dub`, and its use case is not clear. Path where packages are stored should ideally be only known to `PackageManager`, and the API should expose `PlacementLocation` instead of bare `NativePath`. With this in mind, this overload doesn't fit the picture.
1 parent ac8f524 commit e29a366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/dub/packagemanager.d

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class PackageManager {
212212
}
213213

214214
/// ditto
215+
deprecated("Use another `PackageManager` API, open an issue if none suits you")
215216
Package getPackage(string name, NativePath path)
216217
{
217218
foreach( p; getPackageIterator(name) )

0 commit comments

Comments
 (0)