margatampu / laravel-teams-logging

Laravel handler to sending messages to Microsoft Teams using the Incoming Webhook connector
MIT License
43 stars 41 forks source link

Error Composer Update #13

Open thallesdaniell opened 4 years ago

thallesdaniell commented 4 years ago

I started to receive this after an eviction from the composer update. Even trying to pass the specific version.

  [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.*" 
osibg commented 4 years ago

I hit the same problem.

AmitLekhi1990 commented 4 years ago

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.*"
ibpavlov commented 4 years ago

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.

lironesamoun commented 4 years ago

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.

ibpavlov commented 4 years ago

@lilouch Did you try composer update --no-cache ?

MathBoye commented 4 years ago

I have the same problem. I haved try "no-cache" but get the error : The "--no-cache" option does not exist.

ibpavlov commented 4 years ago

You can try with composer clear-cache before composer update

https://getcomposer.org/doc/03-cli.md#clear-cache-clearcache-cc

OrestIL commented 4 years ago

Have the same problem. Tried with composer clear-cache before composer update, doesn't work for me.

ibpavlov commented 4 years ago

@OrestIL did you try switching to "osi-open-source/laravel-teams-logging"?

MathBoye commented 4 years ago

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

ibpavlov commented 4 years ago

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"
    }
}

image

You can give more details about your dependencies or run composer with -vvv to and past output and I'll try to help.

OrestIL commented 4 years ago

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", },

ibpavlov commented 4 years ago

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"
}
OrestIL commented 4 years ago

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" },

ibpavlov commented 4 years ago

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.

OrestIL commented 4 years ago

Deleting vendor/ and composer.lock and composer install works for me now. Thanks a lot!

ibpavlov commented 4 years ago

No problem. I'm glad we found a workaround.

lironesamoun commented 4 years ago

When will the tag be changed on Packagist ?

jrbecart commented 4 years ago

@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?

Lucky-Loek commented 4 years ago

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.

jrbecart commented 4 years ago

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.