Introduce PackageName, to fully type a package name
Package names being passed around in the Dub codebase are string,
which is problematic as it suffers from validation / semantic issues.
Validation because we cannot impose restrictions on characters
or length easily, and semantic because some functions expect a main
package while some would accept a subpackage. Introducing a type
will remedy both those issues.
1 parent 6860b2f commit f09eca3384f95588ddd8cbf79a9a8ebc97c419f8
@Mathias Lang Mathias Lang authored on 14 Jan 2024
Petar Kirov committed on 15 Jan 2024
Showing 8 changed files
View
source/dub/commandline.d
View
source/dub/dependency.d
View
source/dub/dub.d
View
source/dub/packagemanager.d
View
source/dub/project.d
View
source/dub/recipe/io.d
View
source/dub/recipe/json.d
View
source/dub/recipe/packagerecipe.d