Skip to content

Commit 831eb7a

Browse files
committed
chore(migration): register custom test-proxy submodules inside parent reactor pom to support CI linters
1 parent 5c0d356 commit 831eb7a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,13 @@ if [ -f "$SOURCE_REPO_NAME/.kokoro/conformance.sh" ]; then
271271
echo "Fixing protoc-gen-grpc-java version in test-proxy/pom.xml for Apple Silicon (osx-aarch_64) support..."
272272
sed -i.bak "s|1.24.0:exe:\${os.detected.classifier}|1.62.2:exe:\${os.detected.classifier}|" "${SOURCE_REPO_NAME}/test-proxy/pom.xml"
273273
rm -f "${SOURCE_REPO_NAME}/test-proxy/pom.xml.bak"
274-
git add "${SOURCE_REPO_NAME}/test-proxy/pom.xml"
275-
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): fix protoc-gen-grpc-java version for Apple Silicon support"
274+
275+
echo "Integrating test-proxy into the parent modules reactor list to fix CI linters..."
276+
sed -i.bak "s|</modules>| <module>test-proxy</module>\n </modules>|" "${SOURCE_REPO_NAME}/pom.xml"
277+
rm -f "${SOURCE_REPO_NAME}/pom.xml.bak"
278+
279+
git add "${SOURCE_REPO_NAME}/test-proxy/pom.xml" "${SOURCE_REPO_NAME}/pom.xml"
280+
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): fix test-proxy compilation and register as a reactor module for CI support"
276281
COMMIT_COUNT=$((COMMIT_COUNT + 1))
277282
fi
278283

0 commit comments

Comments
 (0)