These are chat archives for composer/composer

4th
Aug 2016
Mobin Hosseini
@iNDicat0r
Aug 04 2016 17:09
i am trying to require a package using composer and when the operation is finished i see many missing files in the vendor directory... i compared with the github repo and confirmed there are missing and also php gets errors because of those missing files
so my question is how to add package from the zip file which was downloaded from github
i tried the repository options in my json and it didnt solve my provlem the files were still missing
Ben Johnson
@mmic-bjohnson
Aug 04 2016 17:16
@iNDicat0r Sounds to me like the version that Composer is pulling, based on whatever constraints are being applied, differs from the version you are downloading manually.
What's the relevant line from composer.json, the require line?
You don't want to "add a package from the zip file which was downloaded from github". You want to fix whatever the version constraint issue might be and then install as normal.
Mobin Hosseini
@iNDicat0r
Aug 04 2016 17:17
i had to specify "dev-master"
composer require leroy-merlin-br/mongolid "dev-master"
their documentation says to use a specific version... 0.8...
and it had the missing files
but dev-master includes everything i need
Ben Johnson
@mmic-bjohnson
Aug 04 2016 17:18
Okay, so what's the problem, then?
If you just use dev-master
Mobin Hosseini
@iNDicat0r
Aug 04 2016 17:19
no problems just tried it and worked, few seconds before your response :)
Ben Johnson
@mmic-bjohnson
Aug 04 2016 17:19
So it's all good? :D
Mobin Hosseini
@iNDicat0r
Aug 04 2016 17:19
but is it normal from the developers?
i mean there is a branch with missing files
people like me want to issue the composer require and get the stuff needed...
Ben Johnson
@mmic-bjohnson
Aug 04 2016 17:24
@iNDicat0r It sounds as though the developers have made a mistake, yes.
You should submit an issue to the repository's Issue tracker.
Explain that when you use the recommended branch, files are missing, and paste the specific error messages.