Adapt getPackagePath to PackageName API
Now that we have the PackageName type, we need to
go through API and decide what the string means.
Multiple places expect a main package, and only
some expect a subpackage. Starting from the bottom,
it is impossible to call getPackagePath with
a subpackage, as the package path of that subpackage
depends on the main package. However, we want to be
lax here, so always return the main package path.
1 parent b88618b commit 8ddc9fd6b6359e2b34a0c5b6e1cea425fa7774f9
@Mathias Lang Mathias Lang authored on 17 Jan 2024
Mathias LANG committed on 17 Jan 2024
Showing 2 changed files
View
source/dub/packagemanager.d
View
source/dub/test/base.d