Skip to content

Commit

Permalink
Deprecate Project.this(PackageManager, NativePath)
Browse files Browse the repository at this point in the history
This overload was originally only used from Dub.loadPackage(NativePath)
before it was changed (although the Project should only ever be instantiated
from the Dub class). But it is doing IO and its soft failure approach
is a misfeature, hence we deprecated it.
  • Loading branch information
Geod24 committed Jan 2, 2024
1 parent db725ec commit aa774cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class Project {
project_path = Path of the root package to load
pack = An existing `Package` instance to use as the root package
*/
deprecated("Load the package using `PackageManager.getOrLoadPackage` then call the `(PackageManager, Package)` overload")
this(PackageManager package_manager, NativePath project_path)
{
Package pack;
Expand Down

0 comments on commit aa774cf

Please sign in to comment.