fix(ci): clone submodule content in rattler-build package #376
Reference in New Issue
Block a user
Delete Branch "fix/rattler-build-submodules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the release build (AppImage) failure where
cmake --installfails because rattler-build'ssource.pathcopy does not include submodule contents.Root Cause
The
recipe.yamlusessource.path: ../..withuse_gitignore: true. When rattler-build copies the source tree, submodule directories (mods/silo/,mods/solver/,mods/gears/,mods/datums/) end up empty — their contents are not resolved from the gitlink references. This causescmake --installto fail when it tries to install files from those paths.The failure was observed at the silo addon install step (after successfully installing silo tree-node icons from
src/Mod/Create/resources/).Changes
package/rattler-build/build.sh— Addclone_if_emptyhelper that detects empty submodule directories and shallow-clones them from their remotes before CMake runspackage/rattler-build/recipe.yaml— Addgitto build requirementsAffected submodules
mods/silokindred/silo-mod.gitmods/solverkindred/solver.gitmods/gearskindred/gears.gitmods/datumskindred/datums.gitThe clone is skipped if the directory already has content (e.g. when building locally with submodules initialized).