This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

planetadeleste
planetadeleste

I'm try to publish a plugin that require of intervention/image library.
But was rejected because an issue with composer:

[RuntimeException]
 Could not load package intervention/image in http://packagist.org: [UnexpectedValueException] Could not parse version constraint 4.x.x: Invalid version string "4.x.x"

The solution to this issue: #472
But, this solution is only for locally installation.
Is there some way to force composer update on marketplace installations? Something in the composer.json maybe...
Or I need to add the vendor directory to my project repository?

Any help would be appreciate Thanks

planetadeleste
planetadeleste

I found a solution to this problem, well I hop so...
In composer.json write this:

{
  "require": {
    "intervention/image": "^2.3"
  },
  "scripts": {
    "pre-install-cmd": [
      "composer self-update"
    ],
    "pre-update-cmd": [
      "composer self-update"
    ],
    "pre-autoload-dump": [
      "composer self-update"
    ]
  }
}

I made this change and now I'm waiting to see if that works in Marketplace.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.