can not upgrade to 2.0.1 from 2.0.0 using composer

Created on 1 March 2023, over 1 year ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

There is an update from version 2.0.0 to 2.0.1. Using composer the upgrade does not work.

Steps to reproduce

From a working installation with version 2.0.0:

composer outdated drupal/*

tells me there is an update. Relevant lines:

drupal/jquery_ui_accordion    1.1.0  2.0.0  Provides jQuery UI Accordion library.
drupal/views_accordion        2.0.0  2.0.1  Provides an accordion views display plugin.

Upgrading:

composer upgrade drupal/views_accordion --with-all-dependencies

results in 'Nothing to install, update or remove'.

Removing version 2.0.0 and reinstalling:

composer remove drupal/views_accordion && composer require drupal/views_accordion

results in the reinstallation of version 2.0.0.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡³πŸ‡±Netherlands pahles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pahles
  • πŸ‡§πŸ‡ͺBelgium bart lambert

    Same here!

  • πŸ‡¬πŸ‡§United Kingdom Rob-PS

    Same here.
    There is no 2.0.1 version
    If I try manually like this composer require 'drupal/views_accordion:^2.0.1' I get

    composer require 'drupal/views_accordion:^2.0.1' --dry-run
    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - Root composer.json requires drupal/views_accordion ^2.0.1 -> satisfiable by drupal/views_accordion[2.0.1, 2.0.x-dev].
    - drupal/views_accordion[2.0.1, ..., 2.0.x-dev] require drupal/jquery_ui_accordion ^2.0 -> found drupal/jquery_ui_accordion[dev-2.x, 2.0.0, 2.x-dev (alias of dev-2.x)] but it conflicts with your root composer.json require (^1.1).

    -W does not work either

  • πŸ‡«πŸ‡·France selinav

    Same problem for me.
    I have this in my composer.json file :

    "drupal/views_accordion": "^2.0",

  • heddn Nicaragua

    When running composer update, add composer u -W (the -W). Your dependency on the jquery ui accordion module also needs to update a major version from 1.x to 2.x.

  • πŸ‡³πŸ‡±Netherlands pahles

    This is what I tried (-W or --with-all-dependencies, see the original issue). It does not work. Also requiring it in a new project does not install the new version.

  • πŸ‡¨πŸ‡¦Canada jodavidson

    Confirmed what @heddn said in #5. The jquery_ui_accordion was stuck at version ^1.0 in composer.json. Updating that entry to

    "drupal/jquery_ui_accordion": "^2.0",

    allowed the views_accordion update to proceed.

    This necessary step should be noted in the release notes.

  • πŸ‡§πŸ‡ͺBelgium bart lambert

    Ok, This trick #7 worked!

    Changing jquery_ui_accordion in my composer.json file from '^1.1' to '^2.0' and then composer update fixed the update.

    But it shouldn't be that way imho. Every update should work out of the box. Not all amateur-webmasters are so handy in to solve these kind of problems.

  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024