Thread overview
Why DUB do not import local D modules dependencies?
Apr 10, 2021
Marcone
Apr 10, 2021
Andre Pany
Apr 10, 2021
Mike Parker
April 10, 2021

How make dub import local D modules (mymodule.d) dependencies?

April 10, 2021

On Saturday, 10 April 2021 at 02:10:48 UTC, Marcone wrote:

>

How make dub import local D modules (mymodule.d) dependencies?

Could you please provide more details about your scenario, otherwise it is quite hard to understand your question.

Kind regards
Andre

April 10, 2021

On Saturday, 10 April 2021 at 02:10:48 UTC, Marcone wrote:

>

How make dub import local D modules (mymodule.d) dependencies?

Dub doesn't import modules. That's for the compiler. Dub will send every module in your source directory tree to the compiler and they will be available to import.

If you have files you want to compile outside of the source directory tree, you can configure "sourceFiles" or "sourcePaths" in your dub.json/sdl. You'll want to also configure "importPaths" in that case.