I have an error when I try to upgrade from version 1.2 to version 1.3 with Composer :
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- drupal/viewsreference 1.3.0 requires drupal/views ^1.0 -> no matching package found.
- drupal/viewsreference 1.x-dev requires drupal/views ^1.0 -> no matching package found.
- Installation request for drupal/viewsreference ^1.3 -> satisfiable by drupal/viewsreference[1.x-dev, 1.3.0].Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
- It's a private package and you forgot to add a custom repository to find it
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | viewsreference-3020314.patch | 293 bytes | paulmckibben |
Comments
Comment #2
paulmckibbenThe problem seems to be highlighted by this line in the error message:
- drupal/viewsreference 1.3.0 requires drupal/views ^1.0 -> no matching package found.
There is no drupal/views package, I presume because because views is part of Drupal core.
Comment #3
zenimagine commentedSo is the update that has a problem ?
Comment #4
paulmckibbenThis patch should fix it.
Comment #5
paulmckibben@zenimagine, yes, version 8.x-1.3 has an updated composer.json file with an invalid requirement.
Comment #7
paulmckibbenI'm not sure why the testbot's attempt to composer require failed with "drupal/viewsreference dev-1.x requires drupal/views ^1.0" when I deleted that line from composer.json. I suspect an issue with the testbot.
Putting this back in "Needs Review"
Comment #8
cri2mars commentednote that after an update
composer info drupal/viewsreferencestill returns the old version...
the typo reference/referennce was the cause of the issue
Comment #9
dubcanada commentedThis patch fixes it for me.
Comment #10
dubcanada commented"squizlabs/php_codesniffer": "*"
should also be moved to dev.
Comment #11
NewZeal commentedI've reverted the composer.json changes in 1.3. Sorry, they should never have gotten in there without proper testing.
Comment #12
NewZeal commentedProblem caught and composer reverted to previous state.