Skip to content

Commit 32756dd

Browse files
vchudnov-gparthea
andauthored
chore(migration): Do not touch release-please-manifest.json (#11113)
* fix(migration): Do not touch release-please-manifest.json OwlBot automatically updates it. * (fix) Do delete the copied-over manifest --------- Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent ea91424 commit 32756dd

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

scripts/split_repo_migration/split-repo-post-process.common-files.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,16 @@ jq ${RPC_SORT_KEYS} --argjson newObject "${RPC_NEW_OBJECT}" ". * {\"packages\":
160160
$RM ${RPC_SPLIT_PATH}
161161
## END release-please config migration
162162

163-
## START release-please manifest migration ########################################
163+
## START release-please manifest deletion ######################################
164164
# variable prefix: RPM_*
165-
RPM_MONO_PATH=".release-please-manifest.json"
166-
echo "Migrating: ${RPM_MONO_PATH}"
167-
168-
# enable this if we want sorted keys. Keep it disabled to append new entries at
169-
# the end (useful for debugging):
170-
RPM_SORT_KEYS="${SORT_JSON_KEYS}"
171-
165+
# We no longer need to add the package to the central file, since OwlBot does
166+
# that for us. However, we still need to delete the per-package manifest copied
167+
# over from the split repo.
172168
RPM_SPLIT_PATH="${PATH_PACKAGE}/.release-please-manifest.json"
173-
RPM_VERSION="$(jq '."."' "${RPM_SPLIT_PATH}")"
174-
jq ${RPM_SORT_KEYS} ". * {\"${MONOREPO_PATH_PACKAGE}\": ${RPM_VERSION}}" ${RPM_MONO_PATH} | sponge ${RPM_MONO_PATH}
169+
echo "Deleting: ${RPM_SPLIT_PATH}"
170+
175171
$RM ${RPM_SPLIT_PATH}
176-
## END release-please manifest migration
172+
## END release-please manifest deletion
177173

178174

179175
## START .repo-metadata.json migration ########################################

0 commit comments

Comments
 (0)