Thread overview
Dub dependencies / How to use own Github fork?
May 30, 2019
Robert M. Münch
May 30, 2019
Andre Pany
Jun 01, 2019
Robert M. Münch
Jun 04, 2019
Jacob Carlborg
May 30, 2019
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. Münch
http://www.saphirion.com
smarter | better | faster

May 30, 2019
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
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
June 01, 2019
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. Münch
http://www.saphirion.com
smarter | better | faster

June 04, 2019
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