#Using git submodules in project. NPM can't find the package.json inside submodule.

6 messages · Page 1 of 1 (latest)

cursive cradle
#

Do I need to run another command do download the submodule?

This project works fine on CloudFlare without a hitch...

Am I missing a step here? 🙂

hard dragon
#

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)

outer aspen
#

running into the exact same issue. Hope this will be supported soon.

ebon meadowBOT
#

Flagging this thread. A team member will be with you shortly.