Question

How can I use private git submodules in my app?

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

Subscribe
Share

This comment has been deleted


Submit an 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

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",

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.