Not updating to 4.2.2 via composer

Created on 1 February 2025, 3 months ago

Problem/Motivation

I am unable to update or install version 4.2.2 of Simple Sitemap via Composer. Instead, it installs 4.2.1. I tried entirely deleting the module files and all references to it in composer.json, composer.lock, vendor/composer/installed.json and vendor/composer/installed.php, and it still installed 4.2.1. I ended up manually downloading the tar.gz file.

Steps to reproduce

composer require 'drupal/simple_sitemap:^4.2'

πŸ› Bug report
Status

Active

Version

4.2

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States matthewv789

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

Comments & Activities

  • Issue created by @matthewv789
  • πŸ‡·πŸ‡ΊRussia walkingdexter

    @matthewv789 I can't reproduce this problem on a fresh install. Try composer why-not drupal/simple_sitemap 4.2.2 or composer require "drupal/simple_sitemap:4.2.2" --dry-run to get more details. Most likely the problem is related to your environment or Composer configuration.

  • Status changed to Postponed: needs info 8 days ago
  • πŸ‡ΊπŸ‡ΈUnited States ssd2698

    You might want to check which Drush version is currently being used in your project. The simple_sitemap module version 4.2.2 includes the following Composer constraint:

    "conflict": {
      "drush/drush": "<12.5.1"
    }
    

    This means it won't install if you're using a version of Drush less than 12.5.1. If possible, try upgrading Drush to version 12.5.1 or higher, and then run composer require drupal/simple_sitemap:^4.2.2 again.

    Hope this helps!

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

    You might want to check which Drush version is currently being used in your project. The simple_sitemap module version 4.2.2 includes the following Composer constraint:

    Edit
    "conflict": {
      "drush/drush": "<12.5.1"
    }
    

    This means it won't install if you're using a version of Drush less than 12.5.1. If possible, try upgrading Drush to version 12.5.1 or higher, and then run: composer require drupal/simple_sitemap:^4.2.2. That should allow Composer to resolve and install the correct version.

    Hope this helps!

  • πŸ‡·πŸ‡ΊRussia walkingdexter

    #3 makes sense.

Production build 0.71.5 2024