RejectedSoftware Forums

Sign up

Several packages simultaneously

How does dub handle if several packages are created from several repos and these repos are forked from the main?
For example I've created package for my own purpose from my fork of the official repo, because I don't want to wait when main developers make some decisions about registering (they as it often happens want to change project organisation and as it often happens have no time to spare). But of course my package shouldn't prevent registration the official one. Is it possible in convinient way?

Re: Several packages simultaneously

On Wed, 30 Oct 2013 09:01:52 GMT, Alexandr Druzninin wrote:

How does dub handle if several packages are created from several repos and these repos are forked from the main?
For example I've created package for my own purpose from my fork of the official repo, because I don't want to wait when main developers make some decisions about registering (they as it often happens want to change project organisation and as it often happens have no time to spare). But of course my package shouldn't prevent registration the official one. Is it possible in convinient way?

If you just need to use the fork locally for your own work and not as a dependency of a public package, you can "git clone" it and use "dub add-path" or "dub add-local" to let it override the official one from the package registry.

If, on the other hand, you want to use the fork as a dependency of a public package (which is not the best idea because of possible conflicts with the original package that this may introduce), you'd ideally need something like issue #104, which is not yet implemented. So currently the only alternative then would be to either require users of the package to use the method above, too, or to register the fork under a different name.

Re: Several packages simultaneously

Thanks for reply!

Re: Several packages simultaneously

How can I set name for package other than repo name?

Re: Several packages simultaneously

Am 31.10.2013 00:57, schrieb Alexandr Druzninin:

How can I set name for package other than repo name?

You have to change the "name" field in package.json in order to do that.