Report this

What is the reason for this report?

How can I use private git submodules in my app?

Posted on October 6, 2020

I want to build an app from a Github repo that references private git submodules but it doesn’t seem to work.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi everyone,

I finally made this work by simply creating a github personal access token for heroku and adding the ENV variable GO_GIT_CRED__HTTPS__GITHUB__COM

as described here: https://github.com/heroku/heroku-buildpack-go#private-git-repos

Hope this helps, Fabio

If you attempt to reference private git submodules that are not accessible via the authenticated Github account you have connected, builds will fail. You must have your private git submodules stored in the Github account you have authorized App Platform to use.

UPDATE: THIS STOPPED WORKING, seems like there is a bug on Digital Ocean side

I had the same issue, my package.json was:

    "feathers-mongodb": "https://github.com/mategvo/feathers-mongodb.git",

You need to change it to

    "feathers-mongodb": "github:mategvo/feathers-mongodb",

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.