So...I have a weird one. I have a composer.json file formatted like this:
{
"require": {
"twilio/sdk": "^6.20"
},
"autoload": {
"classmap": [
"model/*"
]
}
}
And I am trying to deploy a PHP application with that composer.json to an App Engine app service. But, when Cloud Build runs composer install --no-dev --no-progress --no-suggest --no-interaction while building the application, Composer throws this error:
Step #6 - "builder":
Step #6 - "builder":
Step #6 - "builder": [RuntimeException]
Step #6 - "builder": Could not scan for classes inside "model/*" which does not appear to be a file nor a folder
Step #6 - "builder":
Step #6 - "builder":
The problem is, when I run that exact command in the directory App Engine is building, I generate the autoload classes fine.
There is one class recursively in the model folder right now.
Also, when I remove the autoload section from the composer.json, it deploys to app engine just fine, and I have verified the existence of the directory in the deployed app files.
So my question is:
Why is Cloud Build getting a composer error that I can't reproduce locally?
---- EDIT ----

