Problem/Motivation

When a run in terminal the composer require 'drupal/o365:^6.0@beta', it pulls the beta 1

im working in drupal 10.5.4

Steps to reproduce

1.- run command composer require 'drupal/o365:^6.0@beta' - pulls beta 1
2.- i already remove the module.
3.- clear cache via: drush and composer comands.
4.- i run the command again and still pulling the beta 1 version.

Comments

david_rdz created an issue. See original summary.

fabianderijk’s picture

Status: Active » Postponed (maintainer needs more info)

I tried multiple times on multiple drupal installs and I can't reproduce this. Can you tell a bit more about the different versions of, for instance, Drupal, PHP, etcetera?

liam morland’s picture

Issue summary: View changes

Is the problem that it is pulling beta 1 instead of a more recent beta? I am seeing this too.

fabianderijk’s picture

Can you give some more detail? About the Drupal version etc?

liam morland’s picture

Title: Compose Still pulling the beta 1 module » Composer still installing 6.0.0-beta1
Version: 6.0.0-beta2 » 6.0.x-dev
Assigned: david_rdz » Unassigned
Status: Postponed (maintainer needs more info) » Active

If I run composer require 'drupal/o365:6.0.0-beta5', I get:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires drupal/o365 6.0.0-beta5 -> satisfiable by drupal/o365[6.0.0-beta5].
- drupal/o365 6.0.0-beta5 requires drupal/o365_sso * -> satisfiable by drupal/o365_sso[2.0.0, ..., 2.0.6, 3.0.0, ..., 3.0.25, 5.0.0, ..., 5.0.22].
- drupal/o365_sso[2.0.0, ..., 2.0.6] require drupal/o365 ^2 -> found drupal/o365[2.0.0, ..., 2.0.6] but it conflicts with your root composer.json require (6.0.0-beta5).
- drupal/o365_sso[3.0.0, ..., 3.0.25] require drupal/o365 ^3 -> found drupal/o365[3.0.0, ..., 3.0.25] but it conflicts with your root composer.json require (6.0.0-beta5).
- drupal/o365_sso[5.0.0, ..., 5.0.22] require drupal/o365 ^5 -> found drupal/o365[5.0.0-beta1, ..., 5.1.0-beta1] but it conflicts with your root composer.json require (6.0.0-beta5).

So, it thinks that o365 6.0.0-beta5 needs to install a o365_sso project, but that isn't a separate project. It won't install that because the version doesn't match. For some reason, this doesn't happen with beta1. I don't see any obvious changes since beta1 that would cause this.

fabianderijk’s picture

Hmmm, that really weird. I just did a clean install and actually could reproduce this. I will start to debug and let you know!

fabianderijk’s picture

Assigned: Unassigned » fabianderijk
liam morland’s picture

Component: Documentation » Code
Category: Support request » Bug report

It might be something broken about the drupal.org Composer facade.

  • fabianderijk committed 7ffe1e44 on 6.0.x
    Issue #3556900 by fabianderijk: Composer still installing 6.0.0-beta1
    
fabianderijk’s picture

Okay, so I added the o365_sso module to the dependencies of the o365 module. This made the composer loophole. The dependency was added in the beta2. This is now reverted, and the beta6 release has been made: https://www.drupal.org/project/o365/releases/6.0.0-beta6

fabianderijk’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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