This is an automated email from the ASF dual-hosted git repository. inigoiri pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new a80e3dba3b4 HADOOP-18734. Create qbt.sh symlink on Windows (#5626) a80e3dba3b4 is described below commit a80e3dba3b4c6b98275bbaa6f7c1005be28a291b Author: Gautham B A <gautham.bangal...@gmail.com> AuthorDate: Mon May 8 22:25:15 2023 +0530 HADOOP-18734. Create qbt.sh symlink on Windows (#5626) --- dev-support/bin/yetus-wrapper | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-support/bin/yetus-wrapper b/dev-support/bin/yetus-wrapper index a93833767a2..77cdc50a473 100755 --- a/dev-support/bin/yetus-wrapper +++ b/dev-support/bin/yetus-wrapper @@ -171,7 +171,17 @@ if [[ -n "${GPGBIN}" && ! "${HADOOP_SKIP_YETUS_VERIFICATION}" = true ]]; then fi fi -if ! (gunzip -c "${TARBALL}.gz" | tar xpf -); then +if [[ "$IS_WINDOWS" && "$IS_WINDOWS" == 1 ]]; then + gunzip -c "${TARBALL}.gz" | tar xpf - + + # One of the entries in the Yetus tarball unzips a symlink qbt.sh. + # The symlink creation fails on Windows, unless this CI is run as Admin or Developer mode is + # enabled. + # Thus, we create the qbt.sh symlink ourselves and move it to the target. + YETUS_PRECOMMIT_DIR="${YETUS_PREFIX}-${HADOOP_YETUS_VERSION}/lib/precommit" + ln -s "${YETUS_PRECOMMIT_DIR}/test-patch.sh" qbt.sh + mv qbt.sh "${YETUS_PRECOMMIT_DIR}" +elif ! (gunzip -c "${TARBALL}.gz" | tar xpf -); then yetus_error "ERROR: ${TARBALL}.gz is corrupt. Investigate and then remove ${HADOOP_PATCHPROCESS} to try again." exit 1 fi --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org