This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 4b73eb4e fix(dev/release,go): ensure temporary directory removable 
(#1438)
4b73eb4e is described below

commit 4b73eb4e35ab01183c6f2847b3b841257ed4efa6
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Jan 8 23:09:53 2024 +0900

    fix(dev/release,go): ensure temporary directory removable (#1438)
    
    Fixes #1437.
---
 dev/release/verify-release-candidate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/release/verify-release-candidate.sh 
b/dev/release/verify-release-candidate.sh
index 40e087ab..f2d0be23 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -217,9 +217,9 @@ test_yum() {
 
 setup_tempdir() {
   cleanup() {
+    # Go modules are installed with 0444.
+    chmod -R u+w "${ARROW_TMPDIR}"
     if [ "${TEST_SUCCESS}" = "yes" ]; then
-      # Go modules are installed with 0444.
-      chmod -R u+w "${ARROW_TMPDIR}"
       rm -fr "${ARROW_TMPDIR}"
     else
       echo "Failed to verify release candidate. See ${ARROW_TMPDIR} for 
details."

Reply via email to