DoctrineModule icon indicating copy to clipboard operation
DoctrineModule copied to clipboard

Rename repository

Open bakura10 opened this issue 11 years ago • 9 comments

Hi @Ocramius ,

For homogeneity purpose with how composer name packages, I think it would be a good idea to rename the GitHub project from "DoctrineModule" to "doctrine-module". I tried it with my own projects, it's absolutely painless, it breaks nothing (even the old URL is redirected to the new one). It just provides more homogeneity and it seems like some projects like Doctrine adopte this (as well as zf itself).

(I'm not going to raise in issue but the same applies for DoctrineModuleORMModule, DoctrineModuleMongo...)

EDIT : in fact, the composer package canonical also needs to be updated on Packagist.

bakura10 avatar May 20 '13 12:05 bakura10

@bakura10 that's a perfectly fine request by me - we're already doing this for ORM, so let's wait and see how that turns out.

I don't see anything against it, but it's not a priority now

Ocramius avatar May 20 '13 15:05 Ocramius

Nice. In fact it's pretty easy. Basically the only pain is that people will just need to rename their remote branches in git (I think).

bakura10 avatar May 20 '13 15:05 bakura10

@bakura10 I think github handles that, no?

Ocramius avatar May 20 '13 15:05 Ocramius

Maybe! AT least the links to the repo still work.

bakura10 avatar May 20 '13 15:05 bakura10

+1

superdweebie avatar May 20 '13 21:05 superdweebie

For information, here are the steps I needed to do to make it work correctly:

  1. Remove the module from modules.zendframework.com
  2. Rename the repository on GitHub.
  3. Optionally change the name on composer.json here (https://github.com/doctrine/DoctrineModule/blob/master/composer.json#L6) but that's not needed here as it does not point to GitHub.
  4. Log into Packagist and manually update the link.
  5. Readd the module to modules.zendframework.com

All the forks will still point to the new name without any breaks.

bakura10 avatar May 20 '13 21:05 bakura10

The only problem will be broken links =/

danizord avatar May 21 '13 00:05 danizord

No, github does redirections.

Envoyé de mon iPhone

Le 21 mai 2013 à 02:46, Daniel Gimenes [email protected] a écrit :

The only problem will be broken links =/

— Reply to this email directly or view it on GitHub.

bakura10 avatar May 21 '13 05:05 bakura10

So looks perfect (:

danizord avatar May 21 '13 20:05 danizord