-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update composer package name? #13
Comments
In short we probably can't easily:
Probably the only way to do so is to abandon the current package from Packagist and then possibly create a new package, but I'm not sure that would work. I've updated the Plugin Skeleton to reflect this information. |
Seems like if we're not concerned about support any existing usage, we can rename in composer.json and re-publish on Packagist as the new name. I'm not saying this is a great choice, but other than internally I don't think anyone is using our stuff, honestly. As you said, we could always mark the old versions as abandoned for a while. |
Yeah, I'm not sure if this is actually a real solution. Ie. if we mark the package as abandoned and then try to re-add it, will Packagist say: Nope you can't re-add this because it already exists at this location (since the source URLs will be the same) |
Note, we don't have a way of deleting a package from Packagist, only marking it as abandoned. |
How...unforgiving. |
Maybe cause it has 0 installs? |
That can't be it because I can delete the https://packagist.org/packages/loadsys/puphpet-release-composer-installer package, which has been installed. Weird. |
I can see that delete button for that package, so it's not like a github admin thing. And I'm listed as a maintainer for the |
Yep, verified actually by reading the code (yeah Java). |
What a mess. Packagist has two big related issues: Renaming (correcting) package names, and deprecating/deleting old packages. These are hard problems to be sure since the client (composer) side really must not break trivially, but the amount of conversation generated about them is just crazy. (See also: composer/packagist#47) |
So basically if we don't care about having to patch any existing composer.json files from our various consuming projects, we could request that they delete all of the mis-named packages from Packagist and we could re-submit them with corrected ones. I don't care about the download counts, since they are meaningless after taking Travis builds into account. The only thing that warrants any concern is whether it might impact any external third parties using our stuff (which is negligible IMO.) |
"The only thing that warrants any concern is whether it might impact any external third parties using our stuff (which is negligible IMO.)" You say that and while for some that might be true. The reality is we can't tell who is using our stuff or at what rate or how they are using it. We have no data upon which to make that decision basically and if anyone is using this stuff through Composer we basically just throw up a huge middle finger to them. Look I don't like the names but if the choice is breaking even one person's installation of our OSS or keeping with a bad name, I'll choose the bad name. The reward isn't worth it when we can't really inform people about this change. We can just ensure we make better choices moving forward. |
Well we can inform them: $ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package loadsys/config-read could not be found in any version,
there may be a typo in the package name.
...just not politely or ahead of time. The first thing most reasonable people would do would be to go find and check either the Packagist page or the Github repo, both of which would show a different name. Seems better to expose as few people to that middle finger as possible by doing now when the audience will never be smaller. I wish there was a more graceful way where everyone gets to "win," but that never really happens in this industry and I'm not thrilled about not being able to guess the names of my own packages correctly for all time because we aren't willing to correct a mistake, apologize for it, and move forward. |
Reasonable point, I vote we start with one super low traffic one and try it out: |
Unless anyone else objects to getting the middle finger process started, that sounds good to me. |
Sure feel free to start with a package and try it out, since you are the one most in favor of this. Assigning this issue to @beporter For each project create an issue when you get it deleted to edit the |
I've renamed the |
Rename is complete. Closing. |
To follow convention, this package should probably be named
loadsys/cakephp-configread
orcakephp-config-read
.The text was updated successfully, but these errors were encountered: