I have two independant, private, self-hosted, GitLab repositories :
- one for a Symfony 3 web application;
- one for a python library.
I want to execute a command defined in the python repository from a controller in my Symfony app. I’d like to not duplicate the whole python code into the Symfony repository, in order to always have the most up-to-date version of the code.
I am able to retrieve the raw python code using the GitLab API but as the command uses other files in the repository, I supposed it won’t get me very far. I supposed there are ways to use a GitLab repository as an external dependency but I am not able to find the way to do it.
I’ve looked at Git Subtree but I’m not sure it fits my needs as – if I correctly understood – I should manually pull new versions of the code from the python repository.
Do you have any advice on how to achieve what I want to do?
Source: Symfony Questions