I'm currently working on making a Drupal module and I'm wondering if there's any mechanism for me to specify a github repository where upon installation, my module will obtain some code it depends on.
Important: What I'm depending on isn't itself a Drupal module as well, but just a library of code. So unless it supports checking out github repos, I don't think the dependencies
in my info
file are going to help?
Their is no official way to manage external dependencies in Drupal 7.
But nothing (really) stop you to use a package manager like bower and composer.
For composer their is two contrib projects:
For Drupal 8, composer can be used to add dependencies to a Drupal project. Check the doc: Using Composer in a Drupal project