Now DCD depends from version 1.0-alpha7 of default_content module, but 1.0-alpha8 is out. So I can't upgrade it without breaking the dependency. Fix it with "drupal/default_content": "^1.0", not "drupal/default_content": "1.0-alpha7".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Andrew Answer created an issue. See original summary.

arnaldop’s picture

Priority: Normal » Major
FileSize
300 bytes

Here is a patch that solves this problem. It still couples this alpha release to the alpha release of default_content, but it's no longer a specific, now outdated, release.

Unfortunately, I wasn't able to apply it using the cweagans/composer-patches. This may be the case because it's not patching code, but the composer.json file, which almost creates a race condition...

Perhaps now that this patch file is not local, but rather external, the extra/patches mechanism might pick it up and "fix everything".

I marked this as major because, unless I'm wrong, which I often am, there is no reason to couple this release of default_content_deploy with default_content release alpha7. Minor versions should be non-breaking, so it should not matter which alpha release is used. (This could be a bit of wishful thinking, but a guy can hope!)

Andrew Answer’s picture

@arnaldop,

thank you for your fix, it's applied, but I cannot update default_content module anyway. Probably, it can be allowed only if DCD owners commit your patch to dev version, at least.

ivnish’s picture

Status: Active » Reviewed & tested by the community
ivnish’s picture

Please commit this to dev

alphawebgroup’s picture

Hey, any chance to get that committed?

simoneb’s picture

any news on this?

  • martin_klima committed 0faf8ff on 8.x-1.x authored by arnaldop
    Issue #3064093 by arnaldop, Andrew Answer, ivnish: Fix default_content...
martin_klima’s picture

Status: Reviewed & tested by the community » Fixed

Thank you guys and very sorry for the late reaction.

simoneb’s picture

Hi,

I just tried composer require 'drupal/default_content_deploy:1.x-dev'

But I get this one

The requested package drupal/default_content ^1.x-dev exists as drupal/default_content[dev-1.x, 1.x-dev, 1.0.0-alpha8, 1.0.0-alpha7, 1.0.0-alpha6, 1.0.0-alpha5, 1.0.0-alpha4, 1.0.0-alpha3, 1.0.0-alpha2, 1.0.0-alpha1, dev-8.x-1.x, dev-uuid-tree] but these are rejected by your constraint.

Thanks

PS: "minimum-stability": "dev"

martin_klima’s picture

I checked it again without any problem.
composer require 'drupal/default_content_deploy:1.x-dev' works normally for me.

Could it be a problem in typo? You asked for default_content_deploy, but your Composer message is:
> The requested package drupal/default_content ^1.x-dev exists as... So maybe you asked for default_content:1.x-dev.

simoneb’s picture

Removing default_content and better_normalizers from composer.json and run composer require 'drupal/default_content_deploy:1.x-dev' fixed the issue for me.

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.