Merge pull request #8390 from thalesmg/update-appup-tool-vsns

chore: copy `.tool-versions` when calculating appups
This commit is contained in:
Zaiming (Stone) Shi 2022-07-02 09:27:14 +01:00 committed by GitHub
commit 9390fe665c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,8 @@ else
NEW_COPY='no' NEW_COPY='no'
fi fi
TOOL_VERSIONS="$PWD/.tool-versions"
if [ "${SKIP_BUILD_BASE:-no}" = 'yes' ]; then if [ "${SKIP_BUILD_BASE:-no}" = 'yes' ]; then
echo "not building relup base ${PREV_DIR_BASE}/${PREV_TAG}" echo "not building relup base ${PREV_DIR_BASE}/${PREV_TAG}"
else else
@ -103,6 +105,9 @@ else
git reset --hard git reset --hard
git clean -ffdx git clean -ffdx
git checkout "${PREV_TAG}" git checkout "${PREV_TAG}"
# copy current .tool-versions to ensure same OTP version, even if
# overridden.
cp "$TOOL_VERSIONS" ./
make "$PROFILE" make "$PROFILE"
popd popd
fi fi