On Tuesday, 20 December 2016 at 11:04:30 UTC, biocyberman wrote:
On Monday, 19 December 2016 at 16:23:45 UTC, Guillaume Piolat wrote:


What you can do for private package as of today is:

- use path-based dependencies and put your packages in the same repo
- use git submodules and path-based dub dependencies together

If it's a public package, you can register yourself on the DUB repositery.

Regarding path-based dependencies, how can I use a C or non-dub-backing project as a dependency? I defined in dub.json like this:

"importPaths": ["non-dub-pkg"],
"dependencies": {
"non-dub-pkg": {"versions": "~master", "path": "./non-dub-pkg"}
}

And I got an error saying something like "dub could not find dub.json or pakage.json in 'non-dub-pkg' directory". That's true because it is a Makefile project.

But you need one! If this simply source imports just make it dub package, if you need your sources and compiled library add pre-build command to dub package, see this
https://forum.dlang.org/post/[email protected]

Reply via email to