-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename packages #225
Comments
You can delete them yourself (make sure you're logged in to see the delete button) and resubmit them with the new names. |
This package http://packagist.org/packages/nella/nette-addon-doctrine does not have delete button. |
Nope, it has too many downloads so it falls out of the user-deletable |
Thx done |
I have the same issue with 3 repos of mine (CakePHP plugins) OLD:
All 3 cannot be renamed or deleted NEW:
|
@dereuromark you can now thanks to #421 mark packages deprecated. So you can let people know they should use the new ones. When everyone migrated and there are no more downloads in 30days I guess it's safe enough to delete the old ones (I can do that). |
Wait.. it is still the same repo. Everything is the same - expect for the package name changed. And do the still open issue #47 I cannot rename it. Nor can I delete the wrong ones and add the right ones. |
If you just update the package name, then anyone using the package is screwed, whenever they do an update they'll get a solver error. Right now two packages exist with the same repo, so that's cool anyone using either name will get the right code. If they see the deprecation note, they'll switch to the new name and then once everyone got that done we can safely delete the old name to clean things up. |
It does not work properly, though a) the github service hook for the new one does not get received when there is still an old one and both have the same github repo linked (probably the abondaned one still receives it) b) The newly created ones cannot be downloaded with composer: "The requested package cakephp-opensearch could not be found in any version" c) The old one also then stops working leaving it all in a huge mess where nothing works anymore: " The requested package upgrade-cakephp could not be found in any version" |
How long does it need until the new package name is picked up? The old package names not working anymore is a huge issue - and contradicts your "then anyone using the package is screwed". Seems like they already are screwed now. I agree that this is quite an edge case - but I feel like this should be handled more gracefully. |
Hm ok, a) is a known issue and I have to look into fixing it, b/c I'm not sure what's up, sounds wrong but could be something I haven't seen yet. Can you post exact repro steps in a new issue? |
@dereuromark the problem in a) should now be fixed. b/c I can not reproduce. I can require dereuromark/cakephp-upgrade or dereuromark/upgrade-cakephp just fine here, and then switch, run a composer update and get the other one installed instead. Maybe it fails because you have some other libs installed that require dereuromark/upgrade-cakephp or something? Anyway if you can give me clear reproduce steps maybe I can look into it further. |
Well, that was indeed partly the problem. If there is a dependency requiring the old one, they overwrite each other. But the main problem was the composer update issue (~ 5-10 min). During that time the packages are not (yet) available. So waiting for a while then resolved that "not found" issue. |
I didn't find any clear solution, just replacement workaround. |
Renaming a package in packagist is not straigthforward: composer/packagist#225 Keep the old name until a better approach is implemented.
Hi i need rename this packages:
The text was updated successfully, but these errors were encountered: