Pronovix / swagger_ui_formatter

Swagger UI Field Formatter for Drupal
GNU General Public License v2.0
3 stars 12 forks source link

Not supported! Error Swagger UI Field Formatter 8.x-2.4 #63

Closed dhinakaran60 closed 3 years ago

dhinakaran60 commented 3 years ago

After the security update of drupal core Drupal core 8.9.13

Not supported! Swagger UI Field Formatter 8.x-2.4Recommended version:8.x-3.1 (2021-Feb-05)

DownloadRelease notes CompatibleRequires Drupal core: 8.9.13 to 9.1.4Includes:

image

Also when i try to update 8.x.3.1

$ composer require 'drupal/swagger_ui_formatter:^3.1' Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 ./composer.json has been updated Gathering patches for root package. Loading composer repositories with package information Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

Can you please help on this

mxr576 commented 3 years ago

Tbh, I do not think this issue is related to this module directly, since Composer complains about composer/semver which is not a direct dependency of this module.

Try composer require drupal/swagger_ui_formatter:^3.0 --no-update && composer update drupal/swagger_ui_formatter --with-dependencies

dhinakaran60 commented 3 years ago

Thanks! couple question for my clarity:

For your info

I did try

$ composer require drupal/swagger_ui_formatter:^3.0 --no-update && composer update drupal/swagger_ui_formatter --with-dependencies Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 ./composer.json has been updated Gathering patches for root package. Loading composer repositories with package information Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2 Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Thank you Dhina

mxr576 commented 3 years ago

composer show drupal/core-recommended?

How about? composer require drupal/swagger_ui_formatter:^3.0 --no-update && composer update drupal/swagger_ui_formatter drupal/core-recommended --with-dependencies

dhinakaran60 commented 3 years ago

image image

mxr576 commented 3 years ago

okay, so the problem is that your project is not using drupal/core-recommended package which a best practice, please update the project before you would update Swagger UI FF. https://www.drupal.org/docs/updating-drupal/migrating-the-composer-project-for-drupal-earlier-than-880

dhinakaran60 commented 3 years ago

Let me check . Thank you

mxr576 commented 3 years ago

hm, it seems we caught an Drupal.org packagist bug... https://www.drupal.org/project/drupal/issues/3197662

mxr576 commented 3 years ago

@dhinakaran60 we created a new release that fixes the above mentioned Drupal packaging issue, please try again. (drupal/core-recommended is still a requirement)

dhinakaran60 commented 3 years ago

@mxr576 thx