mtierltd / timetracker

GNU Affero General Public License v3.0
82 stars 28 forks source link

Installation fails with composer version 2 #53

Closed swen100 closed 3 years ago

swen100 commented 3 years ago

inside composer.json the attribute "name" has to be changed, otherwise a composer-check fails and the installation-process will stop:

make
gmake composer
gmake[1]: Entering directory '/var/www/nextcloud/apps/timetracker'
composer install --prefer-dist

  [Composer\Json\JsonValidationException]
  "./composer.json" does not match the expected JSON schema:
   - name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$

gmake[1]: *** [Makefile:80: composer] Error 1
gmake[1]: Leaving directory '/var/www/nextcloud/apps/timetracker'
make: *** [Makefile:59: build] Error 2

After I changed the name to "time-tracker/v1" all worked fine.

Btw: the command "composer install --prefer-dist" needs to be changed to "composer install --no-dev" when using composer v2.