DUB / changes & patches to dependencies

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 7 09:10:31 PST 2016


On Thursday, 7 January 2016 at 14:03:47 UTC, Robert M. Münch 
wrote:
> I use DUB and have a vibe project and want to make some small 
> changes to vibe.
>
> I tried just to change the file in 
> ~/.dub/packages/vibe-d-0.7.26/source/vibe/core/drivers/win32.d 
> and expect that DUB will recognize this, recompile vibe and 
> build my project.
>
> But it doesn't. Changing a packages file won't trigger a build. 
> Any idea how to do it?

IMO the best way is to clone vibe.d and add a local dependency:

"dependencies": {
	"somepackage": { "version": "~master", "path": "../SomePackage" }
}

It's a bit more work to setup, but this way unrelated projects 
don't break.


More information about the Digitalmars-d-learn mailing list