Skip to content

Conversation

@danepowell
Copy link

@danepowell danepowell commented Jun 14, 2016

Most composer installations to this point have used https://packagist.drupal-composer.org, which used a version format like this: "drupal/search_api": "8.1.0-alpha14"

However, packagist.drupal-composer.org is now deprecated in favor of packages.drupal.org. packages.drupal.org recommends a new version format: "drupal/search_api": "1.0.0-alpha14"

This is problematic for projects using drupal-security-advisories (DSA) that want to switch to packages.drupal.org, because DSA will detect these new version strings as security vulnerabilities.

@webflo
Copy link
Member

webflo commented Jun 14, 2016

The composer.json in 8.0.x and 7.x is generated automatically. You have to adjust the build script in https://github.com/drupal-composer/drupal-security-advisories/blob/master/build/build-composer-json.php#L62

@danepowell
Copy link
Author

It seems like we'd need to first implement a toSemVar function in https://github.com/drupal-composer/drupal-parse-composer/blob/master/src/VersionFactory.php

And then pull in that new version of the VersionFactory, and call toSemVar in build-composer-json.php to get the new-style version string.

Does that sound right to you? Can you think of any way to accelerate that, given that the drupal-composer packagist is already deprecated?

@webflo
Copy link
Member

webflo commented Feb 4, 2017

Resolved in #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants