Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.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'
Comments
Comment #2
walkingdexter commented@matthewv789 I can't reproduce this problem on a fresh install. Try
composer why-not drupal/simple_sitemap 4.2.2orcomposer require "drupal/simple_sitemap:4.2.2" --dry-runto get more details. Most likely the problem is related to your environment or Composer configuration.Comment #3
ssd2698 commentedYou 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:
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.2again.Hope this helps!
Comment #4
walkingdexter commented#3 makes sense.