omise / omise-php

Omise PHP library
https://docs.opn.ooo
MIT License
67 stars 41 forks source link

Error when try to install from Composer #35

Closed thanapongp closed 8 years ago

thanapongp commented 8 years ago

Hi, I keep getting this following error when try to install from Composer:

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing omise/omise-php (dev-master 7fc6769)
    Downloading: 100%
    Failed to download omise/omise-php from dist: There was an error extracting the ZIP file, it is either corrupted or using an invalid format.
    Now trying to download from source
  - Installing omise/omise-php (dev-master 7fc6769)
    Cloning 7fc6769c5169892573baea4fab338a7bf1bb7331
    7fc6769c5169892573baea4fab338a7bf1bb7331 is gone (history was rewritten?)

  [RuntimeException]
  Failed to execute git checkout "7fc6769c5169892573baea4fab338a7bf1bb7331" -- && git reset --hard "7fc6769c516989257
  3baea4fab338a7bf1bb7331" --
  Note: checking out '7fc6769c5169892573baea4fab338a7bf1bb7331'.
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:
    git checkout -b <new-branch-name>
  HEAD is now at 7fc6769... Merge pull request #34 from gitter-badger/gitter-badge
  error: unable to create file tests/fixtures/api.omise.co/customers/cust_test_5234fzk37pi2mz0cen3/cards/?limit=1-get
  .json (Invalid argument)
  fatal: Could not reset index file to revision '7fc6769c5169892573baea4fab338a7bf1bb7331'.

Is there anyway to fix this? My composer version is 1.1.2

komsitr commented 8 years ago

Dear Omise,

I got the same problem on Windows. The problem is one of the test file has ? in the file name which is not supported by Windows.

error: unable to create file tests/fixtures/api.omise.co/customers/cust_test_5234fzk37pi2mz0cen3/cards/?limit=1-get.json (Invalid argument)

Could you please look into this?

guzzilar commented 8 years ago

Hi @komsitr,

Thank you for your report, I will check it and let you know soon.

tolawho commented 8 years ago

Same problem on Windows 10, composer 1.2.1.

dekkeng commented 8 years ago

+1

mapb1990 commented 7 years ago

+1

thanapongp commented 7 years ago

@mapb1990 Please see issues#48 for workaround.