简体   繁体   中英

Why are there naming collisions in Composer's vendor folder? (between bin and hhvm)

I have been learning to use hacklang and hhvm and I have went about using composer and installing all the needed packages as

composer require hhvm/hsl hhvm/hhvm-autoload
composer require --dev hhvm/hhast hhvm/hacktest facebook/fbexpect

I have also setup the .hhconfig aswell as the hh_autoload.json and hhast-lint.json

However there is a naming collision between the Vendor/bin and Vendor/HHVM

Can anyone explain why this is happening or how to fix it?

This happens because composer copies vendor/vendor/package/bin/file to vendor/bin/file , causing symbols in vendor/vendor/package/bin/file to be defined twice. IT IS EXPECTED.

to avoid naming issues, add the following to your .hhconfig :

ignored_paths = [ "vendor/.+/tests/.+", "vendor/.+/bin/.+" ]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM