You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2024/02/20 02:38:53 UTC
(kyuubi) branch branch-1.7 updated: [KYUUBI #6061] Delete svn staging dir before checking out
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/branch-1.7 by this push:
new 9d2ea7c89 [KYUUBI #6061] Delete svn staging dir before checking out
9d2ea7c89 is described below
commit 9d2ea7c8966b49549cb07fca5822bf93ffc19132
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Tue Feb 20 10:08:34 2024 +0800
[KYUUBI #6061] Delete svn staging dir before checking out
# :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 <ch...@apache.org>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
build/release/release.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/build/release/release.sh b/build/release/release.sh
index bb15fb402..e84bc2c74 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}/*"