Skip to content

Commit 9fd8fc9

Browse files
committed
fix paths to source files after subdirectory rename
1 parent e4f49b6 commit 9fd8fc9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ fi
9797
if [ -z "$CODEOWNER" ]; then
9898
echo "Attempting to find default CODEOWNER from source repository..."
9999
CODEOWNERS_FILE=""
100-
if [ -f "$SOURCE_DIR/.github/CODEOWNERS" ]; then
101-
CODEOWNERS_FILE="$SOURCE_DIR/.github/CODEOWNERS"
102-
elif [ -f "$SOURCE_DIR/CODEOWNERS" ]; then
103-
CODEOWNERS_FILE="$SOURCE_DIR/CODEOWNERS"
100+
if [ -f "$SOURCE_DIR/$SOURCE_REPO_NAME/.github/CODEOWNERS" ]; then
101+
CODEOWNERS_FILE="$SOURCE_DIR/$SOURCE_REPO_NAME/.github/CODEOWNERS"
102+
elif [ -f "$SOURCE_DIR/$SOURCE_REPO_NAME/CODEOWNERS" ]; then
103+
CODEOWNERS_FILE="$SOURCE_DIR/$SOURCE_REPO_NAME/CODEOWNERS"
104104
fi
105105

106106
DEFAULT_CODEOWNER=""
@@ -193,7 +193,7 @@ git checkout -- "$SOURCE_REPO_NAME/.kokoro/presubmit/*.sh" || true
193193
# rm -rf "$SOURCE_REPO_NAME/.kokoro/continuous" "$SOURCE_REPO_NAME/.kokoro/nightly" "$SOURCE_REPO_NAME/.kokoro/presubmit"
194194

195195
# 6.6 Create split integration config if needed
196-
SOURCE_INTEGRATION_CFG="$SOURCE_DIR/.kokoro/presubmit/integration.cfg"
196+
SOURCE_INTEGRATION_CFG="$SOURCE_DIR/$SOURCE_REPO_NAME/.kokoro/presubmit/integration.cfg"
197197
if [ -f "$SOURCE_INTEGRATION_CFG" ]; then
198198
echo "Creating split integration config for $SOURCE_REPO_NAME..."
199199
SHORT_NAME="${SOURCE_REPO_NAME#java-}"
@@ -253,7 +253,7 @@ EOF
253253
fi
254254

255255
# 6.6b Create split GraalVM config if needed
256-
SOURCE_GRAALVM_CFG="$SOURCE_DIR/.kokoro/presubmit/graalvm-native-a.cfg"
256+
SOURCE_GRAALVM_CFG="$SOURCE_DIR/$SOURCE_REPO_NAME/.kokoro/presubmit/graalvm-native-a.cfg"
257257
if [ -f "$SOURCE_GRAALVM_CFG" ]; then
258258
echo "Creating split GraalVM config for $SOURCE_REPO_NAME..."
259259
SHORT_NAME="${SOURCE_REPO_NAME#java-}"

0 commit comments

Comments
 (0)