Skip to content

Commit 613c661

Browse files
committed
feat(builder): support submodules in buildpacks
some buildpacks require external git submodules to pulled in. for example: https://github.com/cloudfoundry/ruby-buildpack
1 parent 404889c commit 613c661

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • builder/rootfs/usr/local/src/slugbuilder/builder

builder/rootfs/usr/local/src/slugbuilder/builder/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ if [[ -n "$BUILDPACK_URL" ]]; then
111111
git clone --quiet "$url" "$buildpack"
112112
pushd "$buildpack" &>/dev/null
113113
git checkout --quiet "$committish"
114+
git submodule init --quiet
115+
git submodule update --quiet --recursive
114116
popd &>/dev/null
115117
fi
116118

0 commit comments

Comments
 (0)