drupal-composer / drupal-parse-composer

:mag: Components used in Drupal-Packagist to parse package information from drupal.org
10 stars 11 forks source link

Correct package URL for projects that had invalid short names fixed #57

Closed gapple closed 8 years ago

gapple commented 8 years ago

As noted in drupal-composer/drupal-packagist#37, dist downloads for projects that were created with an invalid short name that has since been fixed fail with a 404 and fall back to git.
I wasn't able to find a more relevant location to change the project name (or aware of how it would potentially affect other components like the git URL), so this PR changes the package URLs to always use underscores in file names.

Files created prior to when the fixes were applied on Drupal.org ~1 year ago will still have hyphens in their file names and would start to fail with a 404 instead, but I think this is a reasonable tradeoff to make recent packages work as expected and will likely have little practical impact given that any active project will have had an updated release since the short name fixes were applied.