www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - I want change package name for dub , how to do it?

reply Brian <zoujiaqing gmail.com> writes:
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?
Aug 27 2018
next sibling parent reply Eugene Wissner <belka caraus.de> writes:
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.
Aug 27 2018
parent reply JN <666total wp.pl> writes:
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
Aug 27 2018
parent reply Neia Neutuladh <neia ikeran.org> writes:
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.
Aug 29 2018
parent bauss <jj_1337 live.dk> writes:
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.
Aug 30 2018
prev sibling parent =?UTF-8?Q?S=c3=b6nke_Ludwig?= <sludwig+d outerproduct.org> writes:
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
Aug 30 2018