DUB-ADD-PATH(1)
β¨ DUB-ADD-PATH(1) β¨
okay so bestie, welcome to dub-add-path β a page from the D Language Foundation's manual set and honestly one of the easiest little glow-ups you can give your build setup π
πΈ NAME πΈ
dub-add-path β adds a default package search path. that's it. that's the whole vibe π
π¦ SYNOPSIS π¦
dub add-path <path> OPTIONS...
π DESCRIPTION π
so you run this and it adds a default package search path, periodt. every single direct sub folder of that <path> gets searched for package descriptions and gets made available as packages β¨
and here's the tea: using this command has the equivalent effect as calling dub add-local on each of the sub folders manually. so like, you could do it by handβ¦ but why would you π
any packages you register with add-path get preferred over packages downloaded from the package registry when dependencies are being searched during a build operation. homegrown packages stay winning π
okay and now the part everyone always asks about β where does the version come from? the version of the packages is determined by one of these, in this order:
- for GIT working copies, the last tag (
git describe) is used to determine the version π·οΈ - if the package contains a
"version"field in the package description, this is used π - if neither of those apply,
~masteris assumed π
β OPTIONS β
--systemβ DEPRECATED: use--cache=systeminstead. like, she still works but she's retired, use the new one bestie π«Ά
π COMMON OPTIONS π
see dub(1) β all the shared stuff lives over there π
π₯ EXIT STATUS π₯
0β DUB succeeded. slay, we ate π1β usage errors, unknown command line flags π2β package not found, package failed to load, miscellaneous error π
π FILES π
dub.sdldub.json
(the package description files, iykyk π)
π AUTHOR π
Copyright (c) 1999-2026 by The D Language Foundation π«Ά
π§ ONLINE DOCUMENTATION π§
http://code.dlang.org/docs/commandline β¨β©
π SEE ALSO π
and that's the whole page, no cap π brought to you by The D Language Foundation, dated 2026-08-16 β mwah, go add some paths and thrive, bestie π¦β¨
π¦ where this page comes from
- arch rolling: dub 1.42.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms