hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 24 forks source link

Wrong package installed due to capitalisation of name #123

Closed lucasnetau closed 3 years ago

lucasnetau commented 4 years ago

I am attempting to install npm-asset/formBuilder (https://www.npmjs.com/package/formBuilder) however this is getting installed as npm-asset/formbuilder (https://www.npmjs.com/package/formbuilder) which is not the library I am attempting to install.

If you search on https://asset-packagist.org/package/search?query=formBuilder&platform=bower%2Cnpm you will get the correct npm package coming up in the search results, but clicking through takes you to the lowercase version.

How can the correct library be installed?

stof commented 3 years ago

Composer treats package names as case insensitive. so having 2 package names differing only by the case is not supported.

hiqsol commented 3 years ago

Sorry, this issue will not be fixed in this repository.

But you just don't need asset-packagist to get the package cause it is available through the main packagist:

https://github.com/kevinchappell/formBuilder/blob/master/composer.json https://packagist.org/packages/kevinchappell/form-builder

And actually that's the recommended way for all corner cases :) Add the package to packagist.