Order of git submodules and composer

We are using composer to load downloaded git submodules into our application. Unfortunately it seems that the order on render is:

First - Run composer (submodules fail b/c not downloaded yet)
Second - download submodules

This means the submodules don’t exist and can’t be loaded by composer. Is there a way to switch the order on deployment?

First - download submodules
Second - Run composer and load submodules into application

Thank you!

Hi there.

When we clone a service’s Git repo at the start of the build, we also update any Git submodules for the repo. This happens before we run any build commands.

The issue here looks to be the way Composer handles the dependencies on the local filesystem.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.