Tried a clean install using composer as described here: https://www.drupal.org/docs/develop/using-composer/using-composer-to-ins...
composer create-project drupal-composer/drupal-project:8.x-dev www --no-interaction
Your requirements could not be resolved to an installable set of packages.
Problem 1
- webflo/drupal-core-require-dev 8.8.x-dev requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.x-dev requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.7 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.6 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.5 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.4 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.3 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.2 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.1 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0-rc1 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0-beta2 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0-beta1 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0-alpha2 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0-alpha1 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- webflo/drupal-core-require-dev 8.7.0 requires behat/mink-selenium2-driver 1.3.x-dev -> no matching package found.
- Installation request for webflo/drupal-core-require-dev ^8.7.0 -> satisfiable by webflo/drupal-core-require-dev[8.7.0, 8.7.0-alpha1, 8.7.0-alpha2, 8.7.0-beta1, 8.7.0-beta2, 8.7.0-rc1, 8.7.1, 8.7.2, 8.7.3, 8.7.4, 8.7.5, 8.7.6, 8.7.7, 8.7.x-dev, 8.8.x-dev].
I believe is to fix is to remove the require-dev
parameter from the composer.json.
Comment | File | Size | Author |
---|---|---|---|
#2 | core-webflo-3079333-2.patch | 377 bytes | gisle |
Comments
Comment #2
gisleUploaded patch.
Comment #3
cilefen CreditAttribution: cilefen as a volunteer commentedI think this is already discussed in #3078671: Pin behat/mink and behat/mink-selenium2-driver to use resolvable release.
Comment #4
gisleYes, I see from #3078671: Pin behat/mink and behat/mink-selenium2-driver to use resolvable release that one of proposed workarounds is this:
This is what I propose here, so this probably should be closed as a duplicate. However, the status of the related issue is set to "Postponed" - so fixing this is not likely to happen any time soon.
This is the thing: When 8.7.7 was released yesterday, none of my sites could be upgraded. I spent a lot of hours trying to figure out why. If this had been a security release, that would have been quite catastrophic.
What I do not understand is this: Why was this not fixed before the release of 8.7.7 - or if you knew about it - mentioned in the release notes?
The carelessness and lack of QA that seems to be the hallmark of the composer-thingy from the start has made Drupal 8 maintenance a terrible nightmare.
Comment #5
cilefen CreditAttribution: cilefen as a volunteer commentedHi @gisele,
This sort of thing cannot happen in most cases in security releases, because of they way security releases are built. I can get you documentation on that if interested.
Just for the record, the entire Drupal community—you and I, and everyone else—is permitted to test development branches before release. There isn't actually a dedicated team of testers for bugfix releases working in an office somewhere who decided not to test this. Now, the issue at hand is actually about drupal-project, which, yes, although it is the recommended installation on the drupal.org manual, is not really supported here. I think the actual issue is https://github.com/drupal-composer/drupal-project/issues/511. The patch in #2 cannot be committed to Drupal because it is for drupal-project.
Good idea on the release notes. I'll ping the team.
Comment #6
gisleIt is gisle (a male name - "gisele" is the female variant).
I am more interested in practice. Drupal 8.5.6 was a security relase: https://www.drupal.org/SA-CORE-2018-005
And yes, webflo/drupal-core-require-dev was making that update a nightmare as well:
https://www.drupal.org/forum/support/upgrading-drupal/2018-08-02/cant-up...
I think it would not have made any difference if I had tested this. It is clear from #3078671: Pin behat/mink and behat/mink-selenium2-driver to use resolvable release that the problem was known by core maintainers before 8.7.7 was released. The team just didn't care.
OK, I get it, now. I think that crucial piece of documentation should to be added to the documentation page.
Comment #7
cilefen CreditAttribution: cilefen as a volunteer commentedSorry I mistyped the user id! Sorry.
#3078671: Pin behat/mink and behat/mink-selenium2-driver to use resolvable release was (rightly) marked as critical. I don't know why it didn't prevent release if it should have done. I have been too involved with my paid work to volunteer personal time towards release management so I haven't been able to help. I did not design Drupal 8, I've just been part of its "care and feeding". The Composer library situation has evolved since D8 launched, for sure.
drupal-projects's support is the same as that of Drush's. We get issues opened on drupal.org about Drush all the time. In a small fraction of cases, Drupal itself is actually to blame, and they can stay, but most belong on github.
Should drupal-project, or something like it, be part of Drupal itself and supported on drupal.org? Yes. There are efforts underway. As a community member I am not content with the amount of dependency management complaints we get in D8. I always try to help as they come up.
Comment #8
alar CreditAttribution: alar commentedThank you for pointing out the fix @gisle. By deleting the three lines in composer.json I was able to return to the command line and run $composer update to complete my install of drupal 8.7.7
Phew! I almost was going to go back to drush ;)
Comment #9
gisleYou can't. Drupal 8 is deliberately being designed to maintainable with composer only.
Composer is probably a well-engineered dependency manager, but the current documentation available on Drupal.org is, IMNSHO, not great.
Comment #10
tjtj CreditAttribution: tjtj commentedwebflo is not in my composer.json, and I still can't do the update...
Composer says:
Read for further common problems.
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
Comment #11
gisleReopening. #3078671: Pin behat/mink and behat/mink-selenium2-driver to use resolvable release is tagged with version 8.8.x-dev - intended for release in December. We can't wait until then. This need to be fixed in the 8.7 track.
This bug is currently preventing the current production branch (8.7) from being installed and updated with composer.
There exists workarounds, such as tweaking
composer.json
manually. But I think this is large enough impact to warrant it being fixed ASAP and released as a patch release 8.7.8.Comment #12
gisleTried to install from scratch this morning after extercising the thermonuclear option, using the exact same command as yesterday:
It now installed correctly. Looked in
vendor/webflo/
. Thedrupal-core-require-dev
subdirectory was no longer there.So I can no longer reproduce this.
Comment #13
MichelleThanks for posting this. I ran into the same issue and was at a loss. I did composer remove webflo/drupal-core-require-dev and that made a bunch of changes, which makes me nervous, but it fixed the problem and the site seems to be working ok.
Comment #14
smutek CreditAttribution: smutek commentedThanks as well, though I'm still stuck. I ran into this issue this afternoon after updating our BLT/Lightning based install to core 8.7.8
All appeared to be well and my local install was running as expected but my build failed when I tried to deploy to our dev server with:
Running
composer remove webflo/drupal-core-require-dev
resulted inwebflo/drupal-core-require-dev is not required in your composer.json and has not been removed
. Despite this, I can now runcomposer install
successfully, and now I end up with a fatal error and a broken site:I'm not sure, maybe my issue is with BLT, or maybe it's Lightning, but I'm posting here because it may be related to this error as well.
Comment #15
mbatterton CreditAttribution: mbatterton commentedThanks @smutek after removing 'webflo/drupal-core-require-dev' this fixed my install
composer remove webflo/drupal-core-require-dev
Comment #16
mirsoft CreditAttribution: mirsoft commentedConfirmed, experienced that issue on 2 projects after upgrading Drupal to 8.7.10. `composer remove webflo/drupal-core-require-dev` solved problem to me and just replaced `behat/mink-selenium2-driver` from `dev-master` to `1.3.x-dev` and nothing else. Which seems to me it doesn't have any negative implications, but who knows...
Comment #17
Botond CreditAttribution: Botond commentedHi All,
By trying to upgrade from 8.7.7 to 8.7.10 with
it just did not happen.
still showed 8.7.7 version.
Checking
composer prohibits drupal/core:8.7.10
I've got the
webflo/drupal-core-require-dev 8.7.7 requires drupal/core (8.7.7)
message.
So, I updated that with composer too:
Now it shows 8.7.10 :)
Hope, it helps!
Regards
Comment #18
mirsoft CreditAttribution: mirsoft commentedIt seems it was fixed on the creator's side, because right now it already works also on projects where it didn't work before.
Comment #19
weynhamzHad the same issue today, resolved with
composer update webflo/drupal-core-require-dev --with-dependencies
Comment #20
shahankitb1982 CreditAttribution: shahankitb1982 commented#17 Works. Thanks a lot.
Comment #21
tce CreditAttribution: tce commentedGot this today when upgrading from 8.7.5 to 8.8.5. Simply doing the below worked:
composer update webflo/drupal-core-require-dev --with-dependencies
Comment #22
ldwyer CreditAttribution: ldwyer as a volunteer commentedI also got this today when updating from 8.8.4 to 8.8.5 and #21 did the trick - thank you!
Comment #23
geneatwell CreditAttribution: geneatwell commentedWebflo problem is back with 8.9.1 core update from 8.9.0.
Comment #24
pranav45 CreditAttribution: pranav45 at OSSeed Technologies commentedThanks,#15 & #21 solves my problem when updating from drupal 8.7.10 to Drupal 8.9.2 faces some issue regarding webflow packages issue.Have follows two command as below:
`composer remove webflo/drupal-core-require-dev` & then `sudo composer update drupal/core --with-dependencies`