#Using git submodules in project. NPM can't find the package.json inside submodule.
6 messages · Page 1 of 1 (latest)
I read this: https://nixpacks.com/docs/guides/configuring-builds.
Based on those docs for configuring builds, I tried to see if running git commands is possible like:
nixpacks.toml:
[phases.install]
cmds = ['...', 'git submodule update --init']
to
Procfile:
web: git submodule update && uvicorn main:app
None of them work
I think the repository isn't even cloned to begin with. Because every time I run git-specific commands, it says that there's no .git in the current directory or the parent. (in the build/deploy logs).
I think Railway just doesn't support submodules, Vercel does though.
And Vercel does it automatically: (source: Vercel)
Hoping Railway does the same in the future. I saw someone sent this a while back, so it's probably in review atm:
https://feedback.railway.app/feature-requests/p/git-submodules-support
running into the exact same issue. Hope this will be supported soon.
Flagging this thread. A team member will be with you shortly.