Open thallesdaniell opened 4 years ago
I hit the same problem.
I am having the same problem seems like something to do the monolog
[RuntimeException]
Could not load package margatampu/laravel-teams-logging in http://repo.packagist.org: [UnexpectedValueException] Could not parse version constraint ^2.0.*: Invalid version string "^
2.0.*"
[UnexpectedValueException]
Could not parse version constraint ^2.0.*: Invalid version string "^2.0.*"
Version should be either "2.0.*", "^2.0.0" or "^2.0" and this is a problem with 1.1.4 version. The latest version for this package is "1.2.1" and the problem is fixed, but composer is still causing issues because of the 1.1.4 tag.
Edit: This tag should be deleted from this package and updated in Packagist. We've forked it as "osi-open-source/laravel-teams-logging": "^1.2" until this problem is fixed and removed the tag so we can upgrade for now and when this issue is resolved we can switch to the original package. You can use it if you want, but make sure to track this issue and switch back when it's resolved because we don't plan to maintain it.
I'm still not able to make it work...
Even by replacing with "osi-open-source/laravel-teams-logging": "^1.2"
,, I get the error.
@lilouch Did you try composer update --no-cache
?
I have the same problem. I haved try "no-cache" but get the error : The "--no-cache" option does not exist.
You can try with composer clear-cache
before composer update
https://getcomposer.org/doc/03-cli.md#clear-cache-clearcache-cc
Have the same problem. Tried with composer clear-cache
before composer update
, doesn't work for me.
@OrestIL did you try switching to "osi-open-source/laravel-teams-logging"?
Hi. I tried clear-cache
and I switched to "osi-open-source".
Always the same problem.
I tried composer remove
and it doesn't work
I've tried it again and it worked for me. Maybe there is a hidden dependency in another project that requires margatampu's package. This is my compsoer.json file:
{
"require": {
"osi-open-source/laravel-teams-logging": "^1.2"
}
}
You can give more details about your dependencies or run composer with -vvv
to and past output and I'll try to help.
Hey @ibpavlov. Tried with osi-open-source
. Still not working for me.
Here is my composer.json
"require": { "php": "^7.2.5", "abraham/twitteroauth": "^1.1", "darkaonline/l5-swagger": "7.*", "doctrine/dbal": "^2.10", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", "guidocella/eloquent-insert-on-duplicate-key": "^2.2", "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^7.0", "laravel/sanctum": "^2.4", "laravel/socialite": "^4.4", "laravel/tinker": "^2.0", "margatampu/laravel-teams-logging": "^1.2", },
I've also tried composer update
with your composer.json, but with osi-open-source
and it's working. Do you have require-dev dependencies?
"require": {
"php": "^7.2.5",
"abraham/twitteroauth": "^1.1",
"darkaonline/l5-swagger": "7.*",
"doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guidocella/eloquent-insert-on-duplicate-key": "^2.2",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/sanctum": "^2.4",
"laravel/socialite": "^4.4",
"laravel/tinker": "^2.0",
"osi-open-source/laravel-teams-logging": "^1.2"
}
Yes,
"require-dev": { "barryvdh/laravel-ide-helper": "^2.7", "facade/ignition": "^2.0", "fzaninotto/faker": "^1.9.1", "mockery/mockery": "^1.3.1", "nunomaduro/collision": "^4.1", "phpunit/phpunit": "^8.5" },
This also worked for me. The next thing I can think of is deleting your .lock file and /vendor folder before composer update
and try with "osi-open-source" again.
Deleting vendor/ and composer.lock and composer install
works for me now. Thanks a lot!
No problem. I'm glad we found a workaround.
When will the tag be changed on Packagist ?
@lilouch the maintainer, have to force the removal of the version "v1.1.4" on packagist
@stampubolon @margatampu @sh-ogawa @Lucky-Loek Can you look at this?
I don't know why I'm being tagged but I'd prefer it if you didn't randomly tag all the contributors of this package @jrbecart . I've added one tiny change more than a year ago and am not affiliated with this package in any other way.
But a great thing about open source is that you can just fork this repo and roll your own version until this one is updated 😄 Then you can revert back to this one.
I don't know why I'm being tagged but I'd prefer it if you didn't randomly tag all the contributors of this package @jrbecart . I've added one tiny change more than a year ago and am not affiliated with this package in any other way.
But a great thing about open source is that you can just fork this repo and roll your own version until this one is updated 😄 Then you can revert back to this one.
Sorry my bad :( I should have only put the creator. Sorry again.
I started to receive this after an eviction from the
composer update
. Even trying to pass the specific version.