Skip to content

Installation fails with composer version 2 #53

@swen100

Description

@swen100

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions