hirethunk / verbs

Verbs is an event sourcing package for PHP artisans
https://verbs.thunk.dev
MIT License
413 stars 33 forks source link

[Bug]: Unable to install into Laravel 11 project #184

Closed sts-ryan-holton closed 14 hours ago

sts-ryan-holton commented 2 days ago

What happened?

I'm trying to install this into a Laravel 11 project with the following dependencies:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.2",
        "bkwld/cloner": "^3.13",
        "lab404/laravel-impersonate": "1.7.5",
        "laravel-notification-channels/webhook": "2.6.0",
        "laravel/fortify": "1.24.2",
        "laravel/framework": "11.28.0",
        "laravel/horizon": "5.29.1",
        "laravel/octane": "2.5.9",
        "laravel/prompts": "^0.3.1",
        "laravel/pulse": "1.2.5",
        "laravel/reverb": "1.4.1",
        "laravel/sanctum": "4.0.3",
        "laravel/slack-notification-channel": "3.3.2",
        "laravel/telescope": "5.2.3",
        "laravel/tinker": "^2.9",
        "league/flysystem-sftp-v3": "^3.28",
        "mongodb/laravel-mongodb": "5.1.0",
        "mtownsend/collection-xml": "^1.8",
        "mtownsend/request-xml": "2.5.0",
        "mtownsend/response-xml": "2.3.0",
        "nesbot/carbon": "3.8.*",
        "openswoole/core": "^22.1",
        "predis/predis": "2.2.*",
        "propaganistas/laravel-disposable-email": "2.4.*",
        "propaganistas/laravel-phone": "5.3.2",
        "psr/http-factory-implementation": "*",
        "rappasoft/laravel-authentication-log": "^4.0",
        "rinvex/countries": "9.0.1",
        "sentry/sentry-laravel": "4.9.0",
        "spatie/cpu-load-health-check": "1.0.4",
        "spatie/laravel-health": "1.30.1",
        "spatie/laravel-permission": "6.9.0",
        "spatie/laravel-schedule-monitor": "3.8.1",
        "square1/laravel-collection-rolling-average": "2.0.0",
        "staudenmeir/laravel-adjacency-list": "1.22.2",
        "torann/geoip": "3.0.8",
        "yoeriboven/laravel-log-db": "^1.2"
    },
    "require-dev": {
        "brianium/paratest": "^7.5",
        "fakerphp/faker": "^1.23",
        "laravel/pint": "^1.13",
        "laravel/sail": "1.36.0",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^8.0",
        "php-mock/php-mock": "^2.4",
        "phpspec/prophecy": "^1.16",
        "phpunit/phpunit": "^11.0.1",
        "spatie/laravel-horizon-watcher": "1.1.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        },
        "files": [
            "app/helpers.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true,
            "php-http/discovery": true
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}

How to reproduce the bug

Getting the following error

  Problem 1
    - hirethunk/verbs[0.0.1, ..., v0.1.1] require illuminate/contracts ^10.0 -> found illuminate/contracts[v10.0.0, ..., v10.48.22] but these were not loaded, likely because it conflicts with another require.
    - hirethunk/verbs[v0.1.2, ..., v0.6.3] require laravel/prompts ^0.1.15 -> found laravel/prompts[v0.1.15, ..., v0.1.25] but the package is fixed to v0.3.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires hirethunk/verbs * -> satisfiable by hirethunk/verbs[0.0.1, ..., v0.6.3].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require hirethunk/verbs:*" to figure out if any version is installable, or "composer require hirethunk/verbs:^2.1" if you know which you need.

Package Version

0.6.3

PHP Version

8.3.8

Laravel Version

11.28.0

Which operating systems does with happen with?

macOS

Notes

No response

sts-ryan-holton commented 14 hours ago

My mistake, just missed the package version constraint