# Composer dependencies missing that are GIT submodules

**URL:** <https://travis-ci.community/t/composer-dependencies-missing-that-are-git-submodules/11065>\
**Category:** Deployment\
**Tags:** travis-build\
**Created:** [January 21, 2021, 9:42pm UTC](https://travis-ci.community/t/composer-dependencies-missing-that-are-git-submodules/11065 "2021-01-21T21:42:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbowman99](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jbowman99/32/6061_2.png) [@Jbowman99](https://travis-ci.community/u/Jbowman99)\
**Post date:** [January 21, 2021, 9:42pm UTC](https://travis-ci.community/t/composer-dependencies-missing-that-are-git-submodules/11065/1 "2021-01-21T21:42:19Z")

</div>

Hi,

In our build process, we are downloading packages with Composer and a few packages are only available via the source (aka a GIT repo).

In non Travis CI environments, Composer correctly clones the package from source as a GIT submodule. When Composer runs in Travis, the .git directory is added for the package, but the code is never added/downloaded. Is there anything that would prevent the GIT submodule from being downloaded?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [January 21, 2021, 9:47pm UTC](https://travis-ci.community/t/composer-dependencies-missing-that-are-git-submodules/11065/2 "2021-01-21T21:47:27Z")

</div>

Can’t say anything specific without seeing the build. You may check these documentation articles to see how Travis clones the main repo and how to deal with private Git submodules:

> **[Travis CI Documentation](https://docs.travis-ci.com/user/customizing-the-build/)**
>
> Customizing the Build

> **[Travis CI Documentation](https://docs.travis-ci.com/user/private-dependencies/)**
>
> Private Dependencies GitHub
