MarkBaker / PHPMatrix

PHP Class for handling Matrices
MIT License
1.42k stars 13 forks source link

FYI: recently changing capitalization of the "Functions" directory is causing git issues. #13

Open alphex opened 3 years ago

alphex commented 3 years ago

https://github.com/MarkBaker/PHPMatrix/pull/7/files -- the "functions" directory became "Functions"

Git doesn't recognize the file name change (on OSX at least)

https://stackoverflow.com/a/31393409/1940172

I had to use git config core.ignorecase false on my project to pick up the change.

This is for people who aren't using build tools on deploy.

ureimers commented 3 years ago

We're using composer and this leads to the following error, when calling composer up:

  - Installing markbaker/matrix (2.1.2): Loading from cache
    Failed to execute (9) unzip -qq  '/home/project/vendor/markbaker/matrix/83437d4a03f96e6515b73c562607b0a7' -d '/home/project/vendor/composer/c121bd63'

[/home/project/vendor/markbaker/matrix/83437d4a03f96e6515b73c562607b0a7]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/project/vendor/markbaker/matrix/83437d4a03f96e6515b73c562607b0a7 or
        /home/project/vendor/markbaker/matrix/83437d4a03f96e6515b73c562607b0a7.zip, and cannot find /home/project/vendor/markbaker/matrix/83437d4a03f96e6515b73c562607b0a7.ZIP, period.

    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class

For now we had to force our composer.json to use 2.0.0 which works.

liepumartins commented 3 years ago

I also had to downgrade to 2.0 Otherwise this error happens: PHP Fatal error: require(): Failed opening required '/xxxx/vendor/composer/../markbaker/matrix/classes/src/functions/adjoint.php' (include_path='.:/usr/share/php') in /xxxx/vendor/composer/autoload_real.php on line 66

ricardosenabr commented 3 years ago

Hi Guys!

Today received this error in my application laravel 7.

sbenischke commented 3 years ago

Actually it seems there was a rework in the latest version(s) of the structure. The issues is present on case insensitive file systems used for updating dependencies before deploying. Not always the change of functions to Functions is reflected in the folder structure as well. A deletion of the package and a reinstallation with latest version can circumvent the issue.