You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2024/12/10 21:57:43 UTC

(orc) branch main updated: ORC-1811: Use the recommended `closer.lua` URL to download ORC format

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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new 28fe6764b ORC-1811: Use the recommended `closer.lua` URL to download ORC format
28fe6764b is described below

commit 28fe6764b191ba607c8f2479aded537f2a78f573
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Tue Dec 10 13:57:37 2024 -0800

    ORC-1811: Use the recommended `closer.lua` URL to download ORC format
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use the ASF-recommended `closer.lua` URL instead of the direct `dlcdn` link or `archive` link.
    - https://infra.apache.org/release-download-pages.html#download-page
    
        >  you can generate a direct download link using the following syntax:
        > http://www.apache.org/dyn/closer.lua/bar/foo/foo-5.5.1.zip?action=download
    
    ### Why are the changes needed?
    
    To use the recommended download link in order to stabilize CIs.
    
    This is suggested from Arrow community.
    - https://github.com/apache/orc/pull/1830#issuecomment-2529406685
    - https://github.com/apache/arrow/pull/44977
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #2081 from dongjoon-hyun/ORC-1811.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 cmake_modules/ThirdpartyToolchain.cmake | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmake_modules/ThirdpartyToolchain.cmake b/cmake_modules/ThirdpartyToolchain.cmake
index 0a2593692..18ac671a2 100644
--- a/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cmake_modules/ThirdpartyToolchain.cmake
@@ -137,8 +137,7 @@ endfunction()
 # ----------------------------------------------------------------------
 # ORC Format
 ExternalProject_Add (orc-format_ep
-  URL "https://dlcdn.apache.org/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz"
-  URL "https://archive.apache.org/dist/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz"
+  URL "https://www.apache.org/dyn/closer.lua/orc/orc-format-${ORC_FORMAT_VERSION}/orc-format-${ORC_FORMAT_VERSION}.tar.gz?action=download"
   URL_HASH SHA256=739fae5ff94b1f812b413077280361045bf92e510ef04b34a610e23a945d8cd5
   CONFIGURE_COMMAND ""
   BUILD_COMMAND     ""