www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Hosting dub packages on public Heptapod instances?

reply Gregor =?UTF-8?B?TcO8Y2ts?= <gregormueckl gmx.de> writes:
Hi!

The dub registry is currently only allowing package hosting on 
github, gitlab or bitbucket. This is incredibly limited and does 
not allow packages hosted elsewhere. This choice also limits dub 
to git repositories although it handles e.g. Mercurial just fine 
in practice. At the minimum I'd like to see support for gitlab or 
Heptapod instances other than just gitlab.com. My personal 
motivation is that I had to move my publicly visible projects 
from Bitbucket to my own Heptapod instance recently because 
Atlassian has arbitrary decided to delete a ton of projects from 
Bitbucket.

Let's assume for a moment that a PR could be provided that adds 
this support. Would you want to have that feature in the dub 
registry in principle?
Feb 22
next sibling parent reply Seb <seb wilzba.ch> writes:
On Saturday, 22 February 2020 at 12:29:17 UTC, Gregor Mückl wrote:
 Hi!

 The dub registry is currently only allowing package hosting on 
 github, gitlab or bitbucket. This is incredibly limited and 
 does not allow packages hosted elsewhere. This choice also 
 limits dub to git repositories although it handles e.g. 
 Mercurial just fine in practice. At the minimum I'd like to see 
 support for gitlab or Heptapod instances other than just 
 gitlab.com. My personal motivation is that I had to move my 
 publicly visible projects from Bitbucket to my own Heptapod 
 instance recently because Atlassian has arbitrary decided to 
 delete a ton of projects from Bitbucket.

 Let's assume for a moment that a PR could be provided that adds 
 this support. Would you want to have that feature in the dub 
 registry in principle?
Of course, I think the sole reason the support is so limited is that no one has had time to improve it. BTW maybe instead of adding another API to the registry, a generic git solution could be added that uses the git protocol to query for SemVer tags and thus solve this problem once and for all.
Feb 22
parent reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Saturday, 22 February 2020 at 12:47:31 UTC, Seb wrote:
 Of course, I think the sole reason the support is so limited is 
 that no one has had time to improve it.

 BTW maybe instead of adding another API to the registry, a 
 generic git solution could be added that uses the git protocol 
 to query for SemVer tags and thus solve this problem once and 
 for all.
Fine per se to use the VCS protocol instead of the hosting site, but note this still means you need to support multiple options. Not everyone uses git ;-)
Feb 22
next sibling parent reply bachmeier <no spam.net> writes:
On Saturday, 22 February 2020 at 16:26:06 UTC, Joseph Rushton 
Wakeling wrote:
 On Saturday, 22 February 2020 at 12:47:31 UTC, Seb wrote:
 Of course, I think the sole reason the support is so limited 
 is that no one has had time to improve it.

 BTW maybe instead of adding another API to the registry, a 
 generic git solution could be added that uses the git protocol 
 to query for SemVer tags and thus solve this problem once and 
 for all.
Fine per se to use the VCS protocol instead of the hosting site, but note this still means you need to support multiple options. Not everyone uses git ;-)
Some of use Fossil, enjoying the option to easily write extensions in D.
Feb 22
parent Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Saturday, 22 February 2020 at 17:29:16 UTC, bachmeier wrote:
 Some of use Fossil, enjoying the option to easily write 
 extensions in D.
I knew there was a reason why I liked you :-)
Feb 23
prev sibling parent Gregor =?UTF-8?B?TcO8Y2ts?= <gregormueckl gmx.de> writes:
On Saturday, 22 February 2020 at 16:26:06 UTC, Joseph Rushton 
Wakeling wrote:
 On Saturday, 22 February 2020 at 12:47:31 UTC, Seb wrote:
 Of course, I think the sole reason the support is so limited 
 is that no one has had time to improve it.

 BTW maybe instead of adding another API to the registry, a 
 generic git solution could be added that uses the git protocol 
 to query for SemVer tags and thus solve this problem once and 
 for all.
Fine per se to use the VCS protocol instead of the hosting site, but note this still means you need to support multiple options. Not everyone uses git ;-)
Yes, the main problem then is getting appropriate client libraries for all reasonable options... this alone seems like a huge undertaking to me. The scope is definitely beyond whatever time I can make for writing a patch against the dub registry. I'd personally be mostly content if I can find the time to patch it all up in a way that Gitlab instances other than gitlab.com can be used. As I see it, this already requires a couple of UI changes that would also be needed for VCS protocol approach.
Feb 23
prev sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Saturday, 22 February 2020 at 12:29:17 UTC, Gregor Mückl wrote:
 Hi!

 The dub registry is currently only allowing package hosting on 
 github, gitlab or bitbucket. This is incredibly limited and 
 does not allow packages hosted elsewhere. This choice also 
 limits dub to git repositories although it handles e.g. 
 Mercurial just fine in practice. At the minimum I'd like to see 
 support for gitlab or Heptapod instances other than just 
 gitlab.com. My personal motivation is that I had to move my 
 publicly visible projects from Bitbucket to my own Heptapod 
 instance recently because Atlassian has arbitrary decided to 
 delete a ton of projects from Bitbucket.

 Let's assume for a moment that a PR could be provided that adds 
 this support. Would you want to have that feature in the dub 
 registry in principle?
Side information, as dub client is also able to speak Maven, you can host your Dub packages on any Maven registry like Nexus or Artifactory. Kind regards Andre
Feb 23