From 9d2ea7c8966b49549cb07fca5822bf93ffc19132 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Tue, 20 Feb 2024 10:08:34 +0800 Subject: [PATCH] [KYUUBI #6061] Delete svn staging dir before checking out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description ## Issue References ๐Ÿ”— The release process will fail with the following errors if `SVN_STAGING_DIR`(`${KYUUBI_DIR}/work/svn-dev"`) exist. ``` + upload_svn_staging + svn checkout --depth=empty https://dist.apache.org/repos/dist/dev/kyuubi /home/ubuntu/apache-kyuubi/work/svn-dev svn: warning: cannot set LC_CTYPE locale svn: warning: environment variable LC_CTYPE is UTF-8 svn: warning: please check that your locale name is correct svn: E155016: The working copy database at '/home/ubuntu/apache-kyuubi/work/svn-dev' is missing. ``` ## Describe Your Solution ๐Ÿ”ง Delete `SVN_STAGING_DIR` before checking out ## Types of changes :bookmark: - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช Manually test. --- # Checklist ๐Ÿ“ - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6061 from pan3793/release-rm. Closes #6061 3a9d51e89 [Cheng Pan] Delete svn staging dir before checking out Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- build/release/release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/release/release.sh b/build/release/release.sh index bb15fb40207..e84bc2c7476 100755 --- a/build/release/release.sh +++ b/build/release/release.sh @@ -83,6 +83,7 @@ package() { } upload_svn_staging() { + rm -rf "${SVN_STAGING_DIR}" svn checkout --depth=empty "${SVN_STAGING_REPO}" "${SVN_STAGING_DIR}" mkdir -p "${SVN_STAGING_DIR}/${RELEASE_TAG}" rm -f "${SVN_STAGING_DIR}/${RELEASE_TAG}/*"