Update packagist after the redirect
Closed this issue ยท 11 comments
Packagist hasn't been updated after the redirect...
+1
Add the following to your composer.json
for a temporary workaround /cc @micc83
"repositories": [
{
"type": "git",
"url": "git@github.com:klein-framework/klein.php.git"
}
]
@steadweb Unfortunately I can't, I'm relying on dist version as the target machine doesn't comes with Git. ๐ข
Ah, you can use https
instead and use the --prefer-dist
flag with composer.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/klein-framework/klein.php.git"
}
],
Composer command:
composer install --perfer-dist
Hopefully that should work for you ๐
Unfortunately no luck.
My composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/klein-framework/klein.php.git"
}
],
"require": {
"klein-framework/klein.php": "2.1.0"
}
}
When I run:
$ php composer.phar update --prefer-dist
I get:
The requested package klein-framework/klein.php could not be found in any version, there may be a typo in the package name.
Revert the change within the require
as the package name hasn't changed, it's just the URL ๐ - So you want to require "klein/klein": "2.1.0"
not "klein-framework/klein.php": "2.1.0"
Try the following:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/klein-framework/klein.php.git"
}
]
"require": {
"klein/klein": "2.1.0"
}
}
Then run
$ php composer.phar update --prefer-dist
Thank you @steadweb . I didn't realize that the composer.json file of the package didn't changed either.
Sorry about the inconvenience here, everyone.
We'll get this squared away very soon. It's breaking CI builds for me also. ๐
https://github.com/chriso/klein.php should now redirect here.
Just updated the Packagist repo URL ๐
https://packagist.org/packages/klein/klein
Again, sorry for the inconvenience. ๐