cattr-app / backend-application

Public clone of https://git.amazingcat.net/cattr/core/cattr-backend
https://cattr.app
Other
35 stars 25 forks source link

Composer install issue #25

Open indrajitsinh opened 2 years ago

indrajitsinh commented 2 years ago

Following are the environment details OS:- Ubuntu 21.04 PHP:- PHP 7.4.24 Composer:- Composer version 2.1.9 2021-10-05 09:47:38

composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - joshbrw/laravel-module-installer is locked to version v0.1.4 and an update of this package was not requested.
    - joshbrw/laravel-module-installer v0.1.4 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
  Problem 2
    - wikimedia/composer-merge-plugin is locked to version v1.4.1 and an update of this package was not requested.
    - wikimedia/composer-merge-plugin v1.4.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.

I am using the latest release branch (git log output) image

Seems like https://github.com/cattr-app/backend-application/issues/11 still an issue

hunterwebsiteservices commented 2 years ago

Having the same issue. Both release branch and tag 3.4.5. PHP 7.4 as well.

mboy1011 commented 2 years ago

It uses composer version 1.10.7 composer self-update 1.10.7

Make sure to update the cloned composer.json file to the code below: composer.json { "name": "cattr/backend-application", "description": "Backend Application for Cattr", "version": "3.4.3", "license": "SSPL-1.0", "type": "project", "require": { "php": "^7.4", "ext-json": "*", "ext-pdo": "*", "amazingcat/gitlabintegration-module": "^2.1", "amazingcat/redmineintegration-module": "^4.0", "appzcoder/crud-generator": "^3.2.0", "doctrine/dbal": "2.9.2", "erusev/parsedown": "^1.7", "fruitcake/laravel-cors": "^1.0", "fzaninotto/faker": "^1.9", "intervention/image": "^2.5", "joshbrw/laravel-module-installer": "^0.1.4", "k-adam/env-editor": "^1.0", "laravel/framework": "^8.0", "laravel/telescope": "^4.0", "laravel/tinker": "^2.0", "maatwebsite/excel": "^3.1", "nwidart/laravel-modules": "^8", "php-http/guzzle6-adapter": "^2.0", "predis/predis": "^1.1", "sentry/sentry-laravel": "^2.1", "tymon/jwt-auth": "^1.0", "webpatser/laravel-uuid": "^3.0", "wikimedia/composer-merge-plugin": "^1.4" }, "require-dev": { "barryvdh/laravel-ide-helper": "^2.6.7", "brainmaestro/composer-git-hooks": "^2.8", "mockery/mockery": "^1.3", "phpunit/phpunit": "^8.0", "roave/security-advisories": "dev-master", "sempro/phpunit-pretty-print": "^1.0", "squizlabs/php_codesniffer": "3.*" }, "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeds/" } }, "scripts": { "cghooks": "vendor/bin/cghooks", "phpcs": "vendor/bin/phpcs --standard=./phpcs.xml --colors", "phpcbf": "vendor/bin/phpcbf --standard=./phpcs.xml --colors", "project:update": [ "@composer update", "@php artisan migrate", "@config:update" ], "dumphelpers": [ "@php artisan ide-helper:generate", "@php artisan ide-helper:meta" ], "config:init": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", "@php -r \"if (!is_dir(__DIR__.'/public/uploads')) mkdir(__DIR__.'/public/uploads');\"", "@php -r \"if (!file_exists(__DIR__.'/public/uploads/screenshots')) symlink(__DIR__.'/storage/app/uploads/screenshots', __DIR__.'/public/uploads/screenshots');\"", "@php artisan key:generate", "@php artisan jwt:secret", "@config:update" ], "config:update": [ "@php artisan package:discover" ], "post-install-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postInstall", "@config:update", "cghooks add --ignore-lock", "cghooks update" ], "post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "@config:update", "cghooks update" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ], "psr-4": { "Tests\\": "tests/" } }, "extra": { "merge-plugin": { "include": [ "./Modules/*/composer.json" ], "recurse": true, "replace": false, "ignore-duplicates": false, "merge-dev": true, "merge-extra": false, "merge-extra-deep": false, "merge-scripts": false }, "hooks": { "pre-commit": [ "OUTPUT=$(vendor/bin/phpcbf --standard=./phpcs.xml)", "RETVAL=$?", "if [ $RETVAL -ne 0 ]; then", "echo $OUTPUT | less", "fi", "exit $RETVAL" ] } } }

Once you're done with the above configuration just execute this command below:

Run the command to serve local development: php artisan serve

STILL NOT WORKING

{
    "message": "Requested url \/ was not found",
    "error_type": "http.request.not_found"
}
vermorag commented 2 years ago

We've updated all requirements. Tag 4.0.0-RC* Composer version 2.3.5, PHP version 8.1 will work for you.