From aa774cfc31db615505cd48ba44bb8d460ab8664a Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Tue, 2 Jan 2024 13:27:21 +0100 Subject: [PATCH] Deprecate Project.this(PackageManager, NativePath) 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. --- source/dub/project.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dub/project.d b/source/dub/project.d index 8ada45959..98d311e16 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -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;