Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alphex opened this issue Jan 26, 2021 · 4 comments

Comments

@alphex
Copy link

alphex commented Jan 26, 2021

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
Copy link

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
Copy link

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
Copy link

Hi Guys!

Today received this error in my application laravel 7.

@sbenischke
Copy link

sbenischke commented Mar 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants