RejectedSoftware Forums

Sign up

How do I set up a local import?

I've searched the forums and documentation here with no luck. So here it goes,

I've a package created with dub in ...\programming\numeric\dub.json

And I want to make it a dependency for the project in ...\programming\dffann\dub.json

I've tried messing with versions and looking at the examples of the dub.json files, but I keep getting errors. I've tried add-local and add-path to no avail.

How do I build the project described by ...\programming\numeric\dub.json project so I can import it into the project described by ...\programming\dffann\dub.json?

I want to be able to have import numeric.solver; to import the solver module into my other project. I able to do it manually with dmd, but that is a lot of work I would like to automate with DUB, just can't find the documentation.

The source files are all in the 'source' sub-directory of the projects.

Thanks,

Re: How do I set up a local import?

Ok, I seem to have found the problem. I needed a version specified in the base level of the library. There's a lot of uses of the word version in the configuration files.

Another misleading thing was when I used add-local with no version, I got no feedback. After I added the version tag it gave feedback that it was added.

Thanks