Skip to content

Commit 0ee1f84

Browse files
committed
fix(migration): pre-install library BOM modules to cache snapshots for testing utilities
1 parent 49b5eec commit 0ee1f84

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,13 @@ if [ -f "$SOURCE_REPO_NAME/.kokoro/conformance.sh" ]; then
257257

258258
echo "Adapting conformance script paths and build scopes for monorepo root..."
259259
PL_MODULES="${SOURCE_REPO_NAME}"
260+
# Also include any child BOM modules to ensure snapshots install to local .m2 cache for test utilities
261+
for bom_dir in "${SOURCE_REPO_NAME}"/*-bom; do
262+
if [ -d "$bom_dir" ]; then
263+
PL_MODULES="${PL_MODULES},${bom_dir}"
264+
fi
265+
done
266+
260267
if [ -n "${PRE_INSTALL_DEPS}" ]; then
261268
PL_MODULES="${PL_MODULES},${PRE_INSTALL_DEPS}"
262269
fi

0 commit comments

Comments
 (0)