I'm attempting to use a git repo as the source of a recipe. I'm using a specific :tag from this repo and there are submodules to be had. It seems easy enough to enable this using :submodule => true, yay!
However, fpm-cookery is attempting to initialize and update the submodules too early, while the git repository is still on the master branch.
Hi,
I'm attempting to use a
git
repo as the source of a recipe. I'm using a specific:tag
from this repo and there are submodules to be had. It seems easy enough to enable this using:submodule => true
, yay!However, fpm-cookery is attempting to initialize and update the submodules too early, while the
git
repository is still on themaster
branch.ie. It does this
The submodules step happens too early, and may not exist in the
master
branch, etc. I believe it should do this:Now you should have the correct submodules for the tag that was checked out.
Currently, this can be worked around using an
after_source_download
hook with content along the lines of:It must be done at this stage since after this the source is "extracted" (copied) over to the
builddir
without the.git
repo.Cheers,