Composer update fails

Created on 26 June 2023, over 1 year ago
Updated 27 June 2023, over 1 year ago

System reports module as being out of date, yet composer update does nothing:

composer update drupal/string_field_formatter
Loading composer repositories with package information
Package "drupal/string_field_formatter" listed for update is not locked.
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove

System reports 2.0.0 installed with 2.0.2 recommended.

Can I just safely run composer require 'drupal/string_field_formatter:^2.0'?

LMK - thanks!

πŸ’¬ Support request
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States bcobin

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

Comments & Activities

  • Issue created by @bcobin
  • πŸ‡¨πŸ‡¦Canada xmacinfo Canada

    composer update drupal/string_field_formatter will update only to the same branch, here only to 1.x.

    To load a more recent branch (i.e. from 1.x to 2.x you need to use the require command:

    composer require 'drupal/string_field_formatter:^2.0'

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡¨πŸ‡¦Canada xmacinfo Canada
Production build 0.71.5 2024