Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Add submodule command
Open did:key:z6MkvgxH...3392 opened 2 years ago

It was already requested and indeed, it would be nice to have a submodule command, something in form rad submodule add <rid>.

z6MkoqiT...SAQq commented 2 years ago

Is there way to achieve this without breaking support for projects that already use git submodule ?

fintohaps commented 2 years ago

I’m not sure we actually need a rad command for this. So that request is a bit of a red herring :)

The submodule incompatability that’s been showing up is due to radicle-surf choking when it comes across one while generating the file-system entries based on a Git tree. A patch to radicle-surf has been merged, and a new version has been published. We’re waiting on merging of a radicle-httpd change.

That is to say, I don’t think there is any extra work in Radicle to support submodules. The regular git tooling should work as is. One can use git submodule add and point it to the URL of the repository. In fact, I believe you could use the https URL of a seed, and I think you could use rad:// but that would have to be tested (someone could easily add a test under examples/git and see
)).