ignited / laravel-omnipay

Omnipay for Laravel & Lumen
MIT License
509 stars 100 forks source link

Error Installing via Composer #9

Closed PV-Patrick closed 7 years ago

PV-Patrick commented 10 years ago

The install on this isn't working as of late, here is the error I am receiving after trying to install via composer. Any idea on what the cause could be? Thank you!

Updating dependencies (including require-dev)

PV-Patrick commented 10 years ago

I believe this is because the links were changed for github.

danhunsaker commented 9 years ago

It explicitly says git was not found, check that it is installed and in your PATH env in that error message. If you don't have git installed, Composer can't fall back to it if/when it has problems getting the ZIP file from GitHub (happens sometimes when GH hasn't created one yet, or when it doesn't have one for the specific commit Composer is looking for). This isn't a bug with Composer or laravel-omnipay.

Either way, if your problem is resolved, go ahead and close this issue. :)

kyogenex commented 9 years ago

I encountered this issue. What is the fix for this?

Downloading: connection...Failed to download omnipay/targetpay from dist: The "https://api.github.com/repos/omnipay/targetpay/zipball/7274721c97f6f8ad3d2a8b4dea474ac548c45bac" file could not be downloaded (HTTP/1.1 404 Not Found)
alexw23 commented 9 years ago

I'm not quite sure - you'd need to post that on omnipay as an issue.

On Fri, Jan 30, 2015 at 2:42 PM, kyogenex notifications@github.com wrote:

I encountered this issue. What is the fix for this?

Downloading: connection...Failed to download omnipay/targetpay from dist: The "https://api.github.com/repos/omnipay/targetpay/zipball/7274721c97f6f8ad3d2a8b4dea474ac548c45bac" file could not be downloaded (HTTP/1.1 404 Not Found)

— Reply to this email directly or view it on GitHub https://github.com/ignited/laravel-omnipay/issues/9#issuecomment-72149587 .

danhunsaker commented 9 years ago

@kyogenex - Did it successfully install omnipay/targetpay via git in the next few lines?

The error shown here simply means it couldn't find the ZIP file on GitHub's web servers, which itself probably just means they (GitHub, not Omnipay) haven't created the ZIP file yet. That's one of the reasons Composer falls back to a git clone if the ZIP download fails. Check that and let us know.

kyogenex commented 9 years ago

@danhunsaker @alexw23

Thanks for the immediate response. I opened the composer.lock file in the project and found some of the links there are not anymore updated, from "omnipay/targetpay" is now "thephpleague/omnipay-targetpay" so with other plugins such as stripe, pin, etc.

danhunsaker commented 9 years ago

Ah. A composer update will catch most of those, especially if you have omnipay/omnipay in your composer.json...