www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub dependencies / How to use own Github fork?

reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
Is there a best practice how I can use a fork if mine of a project that 
can be access via "dependencies": {...} so that my own code is used?

I think that would make it pretty easy to switch between different versions.

-- 
Robert M. Mnch
http://www.saphirion.com
smarter | better | faster
May 30 2019
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Thursday, 30 May 2019 at 16:45:45 UTC, Robert M. Münch wrote:
 Is there a best practice how I can use a fork if mine of a 
 project that can be access via "dependencies": {...} so that my 
 own code is used?

 I think that would make it pretty easy to switch between 
 different versions.
Github introduced package registry. While dub is not supported, maven is supported and Dub is able to speak Maven. You may have a try. https://github.blog/2019-05-10-introducing-github-package-registry/ Kind regards Andre
May 30 2019
prev sibling parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
On 5/30/19 12:45 PM, Robert M. Münch wrote:
 Is there a best practice how I can use a fork if mine of a project that 
 can be access via "dependencies": {...} so that my own code is used?
 
 I think that would make it pretty easy to switch between different 
 versions.
 
You can dub add-local your local fork, and it will use that instead of going out to code.dlang.org. -Steve
May 30 2019
parent reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
On 2019-05-30 18:29:44 +0000, Steven Schveighoffer said:

 You can dub add-local your local fork, and it will use that instead of 
 going out to code.dlang.org.
Ok, any chance to switch back and forth between local/remote versions? -- Robert M. Mnch http://www.saphirion.com smarter | better | faster
Jun 01 2019
parent Jacob Carlborg <doob me.com> writes:
On 2019-06-01 14:09, Robert M. Münch wrote:
 On 2019-05-30 18:29:44 +0000, Steven Schveighoffer said:
 
 You can dub add-local your local fork, and it will use that instead of 
 going out to code.dlang.org.
Ok, any chance to switch back and forth between local/remote versions?
If you developing a package and a dependency simultaneously and don't what to publish new versions of the dependency all the time I recommend specifying the path to the dependency, see "Use a folder to source a package from" [1]. [1] https://dub.pm/package-format-sdl.html#version-specs -- /Jacob Carlborg
Jun 04 2019