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

twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git


The following commit(s) were added to refs/heads/main by this push:
     new a97db134 Change the tarball download url to `dyn/closer.lua` (#268)
a97db134 is described below

commit a97db1344db9e8d8083843a748e571786a9055d0
Author: hulk <[email protected]>
AuthorDate: Mon Jan 27 10:46:32 2025 +0800

    Change the tarball download url to `dyn/closer.lua` (#268)
    
    * Change the tarball download url to `dyn/closer.lua`
    
    * Fix tarball url
---
 src/components/Releases/index.tsx              | 9 +++++----
 src/components/Releases/kvrocks-controller.tsx | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/components/Releases/index.tsx 
b/src/components/Releases/index.tsx
index 471defc8..6948f0e2 100644
--- a/src/components/Releases/index.tsx
+++ b/src/components/Releases/index.tsx
@@ -64,12 +64,13 @@ type ReleaseData = {
 
 function createReleaseData(version: string, vtag?: string): ReleaseData {
     const fixedVTag = vtag ?? version;
-    const archive = 
`https://downloads.apache.org/kvrocks/${version}/apache-kvrocks-${fixedVTag}-src.tar.gz`
+    const tarballURL = 
`https://www.apache.org/dyn/closer.lua/kvrocks/${version}/apache-kvrocks-${fixedVTag}-src.tar.gz`
+    const signURL = 
`https://downloads.apache.org/kvrocks/${version}/apache-kvrocks-${fixedVTag}-src.tar.gz`
     return {
         name: fixedVTag,
-        archive: archive,
-        checksum: `${archive}.sha512`,
-        signature: `${archive}.asc`,
+        archive: tarballURL,
+        checksum: `${signURL}.sha512`,
+        signature: `${signURL}.asc`,
     };
 }
 
diff --git a/src/components/Releases/kvrocks-controller.tsx 
b/src/components/Releases/kvrocks-controller.tsx
index 22b34913..397817cf 100644
--- a/src/components/Releases/kvrocks-controller.tsx
+++ b/src/components/Releases/kvrocks-controller.tsx
@@ -16,12 +16,13 @@ type ReleaseData = {
 
 function createReleaseData(version: string, vtag?: string): ReleaseData {
     const fixedVTag = vtag ?? version;
-    const archive = 
`https://downloads.apache.org/kvrocks/kvrocks-controller/${version}/apache-kvrocks-controller-src-${fixedVTag}.tar.gz`
+    const tarballURL = 
`https://www.apache.org/dyn/closer.lua/kvrocks/kvrocks-controller/${version}/apache-kvrocks-controller-src-${fixedVTag}.tar.gz`
+    const signURL = 
`https://downloads.apache.org/kvrocks/kvrocks-controller/${version}/apache-kvrocks-controller-src-${fixedVTag}.tar.gz`
     return {
         name: fixedVTag,
-        archive: archive,
-        checksum: `${archive}.sha512`,
-        signature: `${archive}.asc`,
+        archive: tarballURL,
+        checksum: `${signURL}.sha512`,
+        signature: `${signURL}.asc`,
     };
 }
 

Reply via email to