www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DUB / changes & patches to dependencies

reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
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?

-- 
Robert M. MŁnch
http://www.saphirion.com
smarter | better | faster
Jan 07
next sibling parent Basile B. <b2.temp gmx.com> writes:
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?
DUB accepts the --force option IIRC.
Jan 07
prev sibling next sibling parent Keywan Ghadami <keywan.ghadami googlemail.com> writes:
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?
It should work, when it did not work for me it was almost that i made the change within the wrong directory. Please doublecheck the version maybe dub uses a differnt folder. Maybe dub -v gives you more information.
Jan 07
prev sibling parent Rene Zwanenburg <renezwanenburg gmail.com> writes:
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.
Jan 07