ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Possible to use git submodules for bloom?

asked 2014-05-21 22:00:17 -0500

Sebastian Kasperski gravatar image

Is it possible to use git submodules in repositories for releasing packages via bloom?

I used it in a package and it succeeded for the devel-build (even on Jenkins), but now the build seems to fail for the binarydeb-jobs because it can't find files from the submodule.

Thanks and best regards, Sebastian

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-21 22:31:57 -0500

ahendrix gravatar image

I think you've answered the question yourself: it doesn't work.

Using git submodules requires extra submodule init and checkout steps that probably don't happen anywhere along the release pipeline.

Working with git submodules tends to be tricky and error-prone, and most of the developers I've met do their best to stay away from them.

Bloom is generally designed to import your codebase from your upstream repository, massage it to produce a git-buildpakage(GBP) repository for each version of Ubuntu you're releasing into, and make that repository available to the build farm.

If you're trying to use git submodules in the GBP repository, don't.

If your upstream repository uses submodules, you'll either have to extend bloom to support submodules, or release the submodules in your project directly.

edit flag offensive delete link more


I've bumped into the same problem and I think the behavior is still the same as three years ago. @Sebastian Kasperski, have you found another workaround?

alextoind gravatar image alextoind  ( 2017-06-20 03:19:07 -0500 )edit

Unfortunately not. I had to add my library-code (the previous sub-module) to the ros-package directly, which is not a nice solution at all.

Sebastian Kasperski gravatar image Sebastian Kasperski  ( 2017-07-10 03:12:53 -0500 )edit

answered 2019-05-14 09:29:15 -0500

mgruhler gravatar image

I just stumbled upon this answer, it seems this is possible now, following the discussion on github.

edit flag offensive delete link more


Thank you for the link. I was about to lose all hope

Jari gravatar image Jari  ( 2019-10-15 21:59:49 -0500 )edit

Question Tools



Asked: 2014-05-21 22:00:17 -0500

Seen: 875 times

Last updated: May 14 '19