The file can not be cloned to S3 via Flysystem as we're manually calling git for this with symfony/process. Another thing is, if this directory does not exist on disk, it still breaks with the same exception. As a first improvement, we should probably check if the directory exists and create it if not.
As a second improvement, can we use the zip/tar.gz download URI from GitHub itself? In that case, we can possibly download just the latest ref, unpack it memory (as a cron for example) and then store it on S3.
I've noticed that the Update Security DB command does not play well with S3. It says the direct does not exist.
So from what I can see we're doing the following:
The file can not be cloned to S3 via Flysystem as we're manually calling git for this with
symfony/process
. Another thing is, if this directory does not exist on disk, it still breaks with the same exception. As a first improvement, we should probably check if the directory exists and create it if not.As a second improvement, can we use the zip/tar.gz download URI from GitHub itself? In that case, we can possibly download just the latest ref, unpack it memory (as a cron for example) and then store it on S3.