Register DUB project hosted on CodeBerg?
Sönke Ludwig
sludwig at outerproduct.org
Mon Nov 17 08:39:01 UTC 2025
Am 16.11.25 um 00:09 schrieb Dejan Lekic:
> OK, I get it - DUB does not support CodeBerg for whatever reason.
>
> I copied the code to GitLab, and tried to register project using the
> GitLab repo URL: 
>
> I tried all sorts of URLs and got the same result. What is that `/?
> private_token=***` doing there?
>
> At some point i tried the git remote URI, and got 
>
> Am I doing something wrong, or DUB registry has a bug that prevents from
> registering projects hosted on GitLab?
As far as I'm aware, code.dlang.org only supports a fixed set of public
code hosting providers:
https://github.com/
https://gitlab.org/
https://bitbucket.org/
It shouldn't be too hard to change the internal representation to allow
assigning a URL and an API-type to each registered package instead,
coupled with auto-detection of the API type at registration time. The
main question would be how bad this would be in terms of opening up the
attack surface of the overall system.
More information about the Digitalmars-d
mailing list