dlang / dub

Package and build management system for D
MIT License
678 stars 227 forks source link

dub add-override: doesn't reference an existing package #779

Closed whitebyte closed 7 years ago

whitebyte commented 8 years ago
$ dub add-override dchip 0.1.2 ./dchip-0.1.2/
Added override dchip 0.1.2 => ./dchip-0.1.2/
$ dub build
Package override dchip 0.1.2 ->  ./dchip-0.1.2/ doesn't reference an existing package.

Found an old thread: https://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/5195/ Surprisingly, still actual. Tried absolute path, tilda (~) and period(.) variants, still no luck. I didn't find aly examples of dub add-override usage in the docs, so maybe I'm just doing something wrong?

DUB 0.9.24, tested both on SDLang and JSON projects.

luismarques commented 8 years ago

Happened to me again, and now I see I'm not the only one stumbling against this. This time it was with dub add-override ncurses "~master" ~/Projects/ncurses.

cruisercoder commented 8 years ago

I get that same error. The path reference can be to a local git project, correct?

dub add-override dstddb "*" ~/src/dstddb dub build Package override dstddb >=0.0.0 -> /Users/erik/src/dstddb doesn't reference an existing package.

Timoses commented 8 years ago

Same here...

Package override dyaml 0.5.3 ->  /Users/xxx/.dub/packages/dyaml-dlang-tour-0.5.5 doesn't reference an existing package.

Especially annoying as dyaml doesn't compile with newest dmd any more -.- ...

s-ludwig commented 7 years ago

Path based package overrides were completely broken. The path was treated as a version string instead of as an actual path.

s-ludwig commented 7 years ago

Relative paths are also fixed now.