Problem/Motivation

hi, i Cannot install 1.0.2 version with drupal 10.3.6 using composer, it gives this error:

Problem 1
- drupal/social_media_platforms dev-1.0.x requires drupal/block-block * -> could not be found in any version, there may be a typo in the package name.
- drupal/social_media_platforms 1.0.x-dev is an alias of drupal/social_media_platforms dev-1.0.x and thus requires it to be installed too.
- Root composer.json requires drupal/social_media_platforms 1.0.x-dev@dev -> satisfiable by drupal/social_media_platforms[1.0.x-dev (alias of dev-1.0.x)].

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dastan56 created an issue. See original summary.

guiu.rocafort.ferrer’s picture

Status: Active » Postponed (maintainer needs more info)

@dastan56 Can you specify the exact composer command you tried to execute ? I cannot reproduce this myself.

andreasderijcke’s picture

Status: Postponed (maintainer needs more info) » Active

I think this originates from the dependency declaration in the info.yml, which is incorrect:

dependencies:
  - 'block:block'

should be

dependencies:
  - 'drupal:block'

I've never seen mistake here bubble to composer, but since there is no composer.json in the module, this seems the most likely source of this problem.

andreasderijcke’s picture

I've tried on D10.2, D10.3, D10.4.

composer require "drupal/social_media_platforms:^1.0.1"

always works,

composer require "drupal/social_media_platforms:^1.0.2"
always results in the error.

andreasderijcke’s picture

Status: Active » Needs review

See MR for dependency declaration correction. Can't guarantee this will fix the issue.

niharika.s made their first commit to this issue’s fork.

guiu.rocafort.ferrer’s picture

I made a few adjustments to the composer.json file to fix the pipeline execution.
I also confirmed the original issue with the composer require is fixed.

Merging the issue, thanks everyone !

guiu.rocafort.ferrer’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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