klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Update packagist after the redirect #320

Closed micc83 closed 8 years ago

micc83 commented 8 years ago

Packagist hasn't been updated after the redirect...

steadweb commented 8 years ago

+1

steadweb commented 8 years ago

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"
        }   
    ]
micc83 commented 8 years ago

@steadweb Unfortunately I can't, I'm relying on dist version as the target machine doesn't comes with Git. :cry:

steadweb commented 8 years ago

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 :smile:

micc83 commented 8 years ago

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.
steadweb commented 8 years ago

Revert the change within the require as the package name hasn't changed, it's just the URL :smile: - 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
micc83 commented 8 years ago

Thank you @steadweb . I didn't realize that the composer.json file of the package didn't changed either.

steadweb commented 8 years ago

No worries @micc83 :+1:

Rican7 commented 8 years ago

Sorry about the inconvenience here, everyone. We'll get this squared away very soon. It's breaking CI builds for me also. :stuck_out_tongue_closed_eyes:

chriso commented 8 years ago

https://github.com/chriso/klein.php should now redirect here.

Rican7 commented 8 years ago

Just updated the Packagist repo URL :smiley: https://packagist.org/packages/klein/klein

Again, sorry for the inconvenience. :wave: