Thread overview
I want change package name for dub , how to do it?
Aug 27, 2018
Brian
Aug 27, 2018
Eugene Wissner
Aug 27, 2018
JN
Aug 29, 2018
Neia Neutuladh
Aug 30, 2018
bauss
Aug 30, 2018
Sönke Ludwig
August 27, 2018
My team want change packages name:

hunt -> hunt-framework
entity -> hunt-entity
database -> hunt-database
cache -> hunt-cache

How to do it? Must delete package before add it again?
August 27, 2018
On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote:
> My team want change packages name:
>
> hunt -> hunt-framework
> entity -> hunt-entity
> database -> hunt-database
> cache -> hunt-cache
>
> How to do it? Must delete package before add it again?

Yes. And change the name in dub.json/dub.sdl.
August 27, 2018
On Monday, 27 August 2018 at 10:54:22 UTC, Eugene Wissner wrote:
> On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote:
>> My team want change packages name:
>>
>> hunt -> hunt-framework
>> entity -> hunt-entity
>> database -> hunt-database
>> cache -> hunt-cache
>>
>> How to do it? Must delete package before add it again?
>
> Yes. And change the name in dub.json/dub.sdl.

By the way, perhaps dub could use some namespacing for packages, so all those would just go into "hunt" namespace? Would avoid package name squatting too, which is a thing going on in Rust's cargo right now -> https://crates.io/users/swmon
August 29, 2018
On Monday, 27 August 2018 at 13:21:18 UTC, JN wrote:
> On Monday, 27 August 2018 at 10:54:22 UTC, Eugene Wissner wrote:
>> On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote:
>>> My team want change packages name:
>>>
>>> hunt -> hunt-framework
>>> entity -> hunt-entity
>>> database -> hunt-database
>>> cache -> hunt-cache
>>>
>>> How to do it? Must delete package before add it again?
>>
>> Yes. And change the name in dub.json/dub.sdl.
>
> By the way, perhaps dub could use some namespacing for packages, so all those would just go into "hunt" namespace? Would avoid package name squatting too, which is a thing going on in Rust's cargo right now -> https://crates.io/users/swmon

As an aside, I'm grateful that code.dlang.org doesn't require javascript and XHR calls for something as trivial as showing a list of packages.
August 30, 2018
On Wednesday, 29 August 2018 at 22:26:28 UTC, Neia Neutuladh wrote:
> On Monday, 27 August 2018 at 13:21:18 UTC, JN wrote:
>> On Monday, 27 August 2018 at 10:54:22 UTC, Eugene Wissner wrote:
>>> On Monday, 27 August 2018 at 10:25:42 UTC, Brian wrote:
>>>> My team want change packages name:
>>>>
>>>> hunt -> hunt-framework
>>>> entity -> hunt-entity
>>>> database -> hunt-database
>>>> cache -> hunt-cache
>>>>
>>>> How to do it? Must delete package before add it again?
>>>
>>> Yes. And change the name in dub.json/dub.sdl.
>>
>> By the way, perhaps dub could use some namespacing for packages, so all those would just go into "hunt" namespace? Would avoid package name squatting too, which is a thing going on in Rust's cargo right now -> https://crates.io/users/swmon
>
> As an aside, I'm grateful that code.dlang.org doesn't require javascript and XHR calls for something as trivial as showing a list of packages.

That's terrible if it uses XHR for to retrieve the initial data for the page.

Much better if you just use it to retrieve additional data, but the initial data should come with the first GET request.
August 30, 2018
Am 27.08.2018 um 12:25 schrieb Brian:
> My team want change packages name:
> 
> hunt -> hunt-framework
> entity -> hunt-entity
> database -> hunt-database
> cache -> hunt-cache
> 
> How to do it? Must delete package before add it again?

To avoid breaking dependencies, the best approach is this:

1. clone the repository
2. set the existing package to point to the cloned repository at code.dlang.org
3. change the name and create a new version tag
4. register the original repository again, picking up the new name