On 8/26/2014 5:37 AM, Ryan wrote:
Then I thought I'd learn dub. Well, this is NOT going well... I did a git clone of gtk-d, then tried to build with dub (renamed the package.json to dub.json), and it told me "Conflicting package multi-reference".... I have no clue and I've tried removing package references
Any libraries you want to use that are registered in the dub registry[1] (which gtk-d is) should be added to your project's dub.json as dependencies (see [2] for an example of using gtk-d). This will cause dub to download and compile the libraries for you. You never have to pull any of them down or compile them yourself.
I tried "dub remove gtk-d --version=*" but it just lists out excuses why it can't work... "no retrieval journal found for...", "Untracked file found"....
This command will only remove libraries that dub is managing, not anything you have downloaded outside of dub and compiled directly.
So then I try every variation of "dub remove-local" and "dub remove-path" I can think of.
remove-local is the inverse of add-local, which you might use when you want to test a dub-enabled library that hasn't yet been added to the registry (such as a new but unreleased version of a registered library, or a library you are developing locally but haven't yet released). add-local tells dub to look on the local filesystem rather than through the dub registry for the library.
I haven't looked at add-/remove-path yet, so no comment on those. [1] http://code.dlang.org/ [2] http://code.dlang.org/packages/gtk-d --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com