klein/klein.php

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.

No worries @micc83 ๐Ÿ‘

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. ๐Ÿ‘‹