Replies: 13 comments 37 replies
-
|
Found an alternative solution: use GitHub actions and call Vercel CLI from there. Apparently the automatic git deployment from Vercel does not support Submodules |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for hijacking this discussion, but I was wondering if this also was working with Serverless Functions ? I have this node function which requires a file from a Git submodule directory. While working fine locally, through I've tried including said file via Works as expected with a file which isn't sourced from a submodule directory. |
Beta Was this translation helpful? Give feedback.
-
|
We support public git submodules over HTTP – No need for additional configuration or build commands. However, we don't have plans to add private submodules or SSH submodules at this time, but maybe in the future. |
Beta Was this translation helpful? Give feedback.
-
|
What about the support of ssh style submodules? Currently I'm facing the following error |
Beta Was this translation helpful? Give feedback.
-
|
To clarify what @styfle said earlier and after a bit’o frustrating debugging of my own: Vercel supports Git submodules but only cloning them via HTTP or HTTPS, not SSH which is the default. Switch the protocol in your Will cause Will work hunky dory: |
Beta Was this translation helpful? Give feedback.
-
|
Until Vercel adds support for private submodules, here is a solution: |
Beta Was this translation helpful? Give feedback.
-
|
is this still not supported? |
Beta Was this translation helpful? Give feedback.
-
|
I made a CLI npx vercel-submodules --all
npx vercel-submodules --paths specific-module-a specific-module-bNo need to add workflows or paths one by one; you can leave it to clone all submodules using the |
Beta Was this translation helpful? Give feedback.
-
|
I am chiming in to say that this is a very important feature for my team. While I am thankful for the creative solution @junhoyeo has made available, it doesn't feel great to hand over a Github token with wide permissions to a 3rd party npm package. |
Beta Was this translation helpful? Give feedback.
-
|
This workaround allows you to check out multiple submodules using a fine-grained personal access token. If someone needs something like that with absolutely zero dependencies, just take a look. |
Beta Was this translation helpful? Give feedback.
-
|
Please add ssh submodule support. This is really important for all monorepos utilizing submodules. |
Beta Was this translation helpful? Give feedback.
-
|
Jesus this still does not work. Running into |
Beta Was this translation helpful? Give feedback.
-
|
Anything for this on the roadmap yet? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Does Vercel supports git submodules? I tried a custom build step with
git submodule init && git submodule updatebut apparently the build happens outside a git repoBeta Was this translation helpful? Give feedback.
All reactions