tb_megamenu dev-3.x reports as 1.8 causing composer update confusion

Created on 13 April 2024, 3 months ago
Updated 15 April 2024, 2 months ago

Problem/Motivation

Having the latest 3 dev version installed: It reports as 1.8.
Does not automatically update to 1.9. Which is right because ist shouldn't.

$ composer require 'drupal/tb_megamenu:^1.9'

./composer.json has been updated
Running composer update drupal/tb_megamenu
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading drupal/tb_megamenu (dev-3.x a90a1c8 => 1.9.0)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

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

Comments & Activities

  • Issue created by @maxilein
  • πŸ‡ΊπŸ‡ΈUnited States themodularlab

    There were some issues with our recent 8.1.8 release. We issued a new 8.1.9 to fix as well and also we've issued a new alpha4 on the 3.x branch. You may need to update the minimum composer version of the module. Let us know if trying to use the 3.x dev branch still references 8.x-1.8 or 8.x-1.9.

  • Status changed to Fixed 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States themodularlab
  • πŸ‡¦πŸ‡ΉAustria maxilein

    Thank you.
    I upgraded using composer to alpha4 which reports correctly in extend.

    Upgrading drupal/tb_megamenu (3.0.0-alpha4 => dev-3.x 9037b6e): Checking out 9037b6ebfa from cache
    Machine name: tb_megamenu
    Version: 3.0.0-alpha4

    BUT the dev version also reports as
    Machine name: tb_megamenu
    Version: 3.0.0-alpha4

    Looking into the info.yml file

    name: The Better Mega Menu
    type: module
    description: 'Provides complex, multi-column mega menu solutions for Drupal.'
    core_version_requirement: ^8 || ^9 || ^10 || ^11
    package: Menu
    configure: entity.tb_megamenu.collection
    

    there is no version information...

  • Status changed to Needs work 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States themodularlab

    Version info is added via the Drupal.org packaging script. Not sure why it's not being added in our case.

  • πŸ‡ΊπŸ‡ΈUnited States themodularlab

    Actually, looking into this further, Drupal.org packaging doesn't put version info in the dev version. It only adds it to releases. Right now, the latest alpha of the 3.x branch is identical to the dev version, expect, you'll see the version data in the info.yml file. I would suggest using the latest alpha instead of dev.

    Are you still seeing an issue when using the dev version? Because of the issues we had cutting 1.x and 3.x releases recently, you may need to remove TB Megamenu and then re-add it via composer so it has a clean install.

  • πŸ‡ΊπŸ‡ΈUnited States themodularlab

    I'm setting this back to fixed status as the original issue here has been addressed with new 1.x and 3.x releases. If you are still having issues that my previous comment doesn't address (uninstall and reinstall via composer) then I would suggest creating a new ticket.

  • Status changed to Fixed 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States themodularlab
Production build 0.69.0 2024