Error composer install

I’ve used Gitify from a Docker image a couple of months ago, and now it does not work anymore. The error says:

“Could not scan for classes inside “/opt/Gitify/vendor/kbjr/git.php/git.php” which does not appear to be a file nor a folder”

That is correct, that file is called Git.php (with a capital G), so it exits with a non-zero status.
I see that something is fixed 21 days ago in the master branch, but it does not work for me.

My Dockerfile:

FROM maki/modx

#MAINTAINER Stefaan Loehers

COPY gitify /var/www/html/.gitify

RUN apt-get update && \

apt-get install -qy git mysql-client libzip-dev && \

rm -rf /var/lib/apt/lists/* && \

php -r "copy('', 'composer-setup.php');" && \

php -r "if (hash_file('SHA384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \

php composer-setup.php && \

php -r "unlink('composer-setup.php');" && \

chmod +x composer.phar && \

mv composer.phar /usr/bin/composer && \

cd /opt && \

git clone -b fix/php8_compatibility Gitify && \

cd Gitify && \

composer install && \

ln -s /opt/Gitify/vendor/kbjr/git.php/Git.php /opt/Gitify/vendor/kbjr/git.php/git.php && \

composer install && \

chmod +x Gitify && \

cd /var/www/html/ && \

mkdir -pm777 _data _backup assets && \

docker-php-ext-install zip 

CMD [“apache2-foreground”]

Hi @tgroeneveld and welcome to the community!

After cloning Gitify, install it without dev-dependencies (which currently don’t work as you already noticed):

composer install --no-dev

Let us know if that worked :slight_smile:

1 Like

@tgroeneveld Okay… as it turns out, I have the same issue.

Temporary workaround is to delete this line inside composer.json:

"kbjr/git.php": "*",

And then again composer install --no-dev.

There is something faulty going on with that package (git.php), but as I recall (and quickly checked) isn’t actually currently used by Gitify.