-
Notifications
You must be signed in to change notification settings - Fork 26
[Fix] Issues with ramsey/uuid when installing? #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your suggestion! |
Any workaround on this? |
This is an issue with the Maybe there's some way to circumvent this through composer.json, or someone would have to fork the opencencus package. |
yes the only way is to fork the project and setup composer.json to use your fork. |
So a new release was finally pushed, but unfortunately the PR for updating |
For now, I forked and made it work with {
"type": "vcs",
"url": "[email protected]:nanosolutions/laravel-stackdriver.git"
},
{
"type": "vcs",
"url": "[email protected]:nanosolutions/opencensus-php.git"
},
{
"type": "vcs",
"url": "[email protected]:nanosolutions/opencensus-php-exporter-stackdriver.git"
} |
Hey @cerw Can you share the steps on how to upgrade the composer and use this package in Laravel 8?Thanks |
Hey
Hey @JulianMar In this case, we have 3 packages:
In my Laravel app, I made the gluedev/laravel-stackdriver with version "dev-master" together with a "repositories" section to my own forked version of the package. When I try to run "composer update", I get this:
|
Hello, See example of one of projects: {
"name": "*******",
"type": "project",
"description": "*",
"keywords": [
"framework",
"laravel"
],
"license": "proprietary",
"authors": [
{
"name": "Nano Solutions Pty Ltd",
"email": "[email protected]",
"homepage": "https://nanosolutions.io",
"role": "Developer"
}
],
"require": {
"php": "^7.3 || ^8.0",
"ext-json": "*",
"bugsnag/bugsnag-laravel": "^2.20",
"doctrine/dbal": "^2.11",
"erusev/parsedown": "^1.7",
"facade/ignition": "^2.5",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"gluedev/laravel-stackdriver": "dev-develop",
"guzzlehttp/guzzle": "^7.0.1",
"htmlmin/htmlmin": "^8.0",
"kalnoy/nestedset": "^5.0",
"laravel/framework": "^8",
"laravel/horizon": "^5.6",
"laravel/legacy-factories": "^1.1",
"laravel/slack-notification-channel": "^2.2",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0",
"league/flysystem-cached-adapter": "^1.1",
"maatwebsite/excel": "dev-main",
"predis/predis": "^1.1",
"simplehtmldom/simplehtmldom": "^2.0@RC",
"spatie/laravel-activitylog": "^3.16",
"spatie/laravel-medialibrary": "^9.0",
"spatie/laravel-tail": "^4.3",
"stevebauman/purify": "^3.0",
"superbalist/laravel-google-cloud-storage": "^2.2"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.5",
"beyondcode/laravel-dump-server": "^1.5",
"enlightn/security-checker": "^1.8",
"ergebnis/composer-normalize": "^2.13",
"fakerphp/faker": "^1.9.1",
"jakub-onderka/php-console-highlighter": "^0.4.0",
"laravel/dusk": "^6.8",
"mockery/mockery": "^1.4.2",
"nano/docs": "dev-master",
"nunomaduro/collision": "^5.0",
"php-parallel-lint/php-parallel-lint": "^1.1",
"php-webdriver/webdriver": "^1.8",
"phpro/grumphp": "^1.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"repositories": [
{
"type": "vcs",
"url": "[email protected]:nanosolutions/Laravel-Excel.git"
},
{
"type": "vcs",
"url": "[email protected]:nanosolutions/laravel-stackdriver.git"
},
{
"type": "vcs",
"url": "[email protected]:nanosolutions/opencensus-php.git"
},
{
"type": "vcs",
"url": "[email protected]:nanosolutions/opencensus-php-exporter-stackdriver.git"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
|
Thanks @cerw Not only you need to add repositories section to opencensus-php-exporter-stackdriver and laravel-stackdriver, but also in the project using laravel-stackdriver? Thanks |
Thanks @cerw I managed to make it work. I had to do the following:
|
Hey folks, not a bug, but a compatibility issue downstream from this package.
This is likely a newbie issue more than anything, but if you're using Laravel 7 (in my case 7.13) it requires
ramsey/uuid ^3|^4"
.However,
opencensus/opencensus
(a dependency of this package) has itsramsey/uuid
dependency set to"~3"
.Thus, you need to manually downgrade
ramsey/uuid
directly in your project PRIOR to requiringgluedev/laravel-stackdriver
or you too could wind up in the dependency-hell I just escaped from.Do this by running
composer require ramsey/uuid "^3"
. Then you can proceed on and runcomposer require gluedev/laravel-stackdriver
.Again, this dependency tracing may be second nature to others... but it just gobbled up about 90 minutes of my time. Thus, I hope this helps others.
The text was updated successfully, but these errors were encountered: