Git submodules in HuggingFace Spaces app

Has anybody successfully use git submodules in HFSpaces? I have an existing working repository which depends on submodules. The submodule shows up on the Github repo, but doesn’t show up on the HF Spaces repo after commit. As a result, there is a build failure.

I tested the code locally with the submodule and it works fine. I am wondering if I am missing a step while commiting to the HFSpaces repo. Any help would be appreciated.

1 Like

I’ve never seen anyone doing it…
I guess the hacky way would be to mess around with the permissions in the Docker space…
It might be quicker to raise an issue if this doesn’t work.

also for Hugging Face general issue

having the same issue. i guess i could upload the whole submodule repo and then rework my code to suit that?!

curious if this is the workaround, or messing with the docker settings as above ^

1 Like