Skip to content

Commit

Permalink
chore(migration): Revert #11113, to process release-please-manifest (#…
Browse files Browse the repository at this point in the history
…11124)

We actually do still need to copy the release-please-manifest.json
value from the split repo, since that contains the real version
number last released. Relying on the owl-bot generated version would
reset the version numbering.
  • Loading branch information
vchudnov-g authored Apr 21, 2023
1 parent ad96ed1 commit 7c1217d
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,20 @@ jq ${RPC_SORT_KEYS} --argjson newObject "${RPC_NEW_OBJECT}" ". * {\"packages\":
$RM ${RPC_SPLIT_PATH}
## END release-please config migration

## START release-please manifest deletion ######################################
## START release-please manifest migration ########################################
# variable prefix: RPM_*
# We no longer need to add the package to the central file, since OwlBot does
# that for us. However, we still need to delete the per-package manifest copied
# over from the split repo.
RPM_SPLIT_PATH="${PATH_PACKAGE}/.release-please-manifest.json"
echo "Deleting: ${RPM_SPLIT_PATH}"
RPM_MONO_PATH=".release-please-manifest.json"
echo "Migrating: ${RPM_MONO_PATH}"

# enable this if we want sorted keys. Keep it disabled to append new entries at
# the end (useful for debugging):
RPM_SORT_KEYS="${SORT_JSON_KEYS}"

RPM_SPLIT_PATH="${PATH_PACKAGE}/.release-please-manifest.json"
RPM_VERSION="$(jq '."."' "${RPM_SPLIT_PATH}")"
jq ${RPM_SORT_KEYS} ". * {\"${MONOREPO_PATH_PACKAGE}\": ${RPM_VERSION}}" ${RPM_MONO_PATH} | sponge ${RPM_MONO_PATH}
$RM ${RPM_SPLIT_PATH}
## END release-please manifest deletion
## END release-please manifest migration


## START .repo-metadata.json migration ########################################
Expand Down

0 comments on commit 7c1217d

Please sign in to comment.