You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/10/10 09:44:04 UTC

[shenyu-website] branch main updated: [type:fix] fix golang client release doc. (#794) (#794)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new b9322ea3a6 [type:fix] fix golang client release doc. (#794) (#794)
b9322ea3a6 is described below

commit b9322ea3a6cb1206e14cf711e8209d469593c6a5
Author: Lisandro <li...@163.com>
AuthorDate: Mon Oct 10 17:44:00 2022 +0800

    [type:fix] fix golang client release doc. (#794) (#794)
    
    * [type:fix] fix golang client release doc. (#794)
    
    * [type:fix] fix golang client release doc. (#794)
    
    Co-authored-by: lishuo <li...@apache.org>
---
 community/14-shenyu-client-golang-release-guide.md       | 16 +++++++++-------
 .../current/14-shenyu-client-golang-release-guide.md     | 16 +++++++++-------
 2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/community/14-shenyu-client-golang-release-guide.md b/community/14-shenyu-client-golang-release-guide.md
index 6e21b6b148..483a788a01 100644
--- a/community/14-shenyu-client-golang-release-guide.md
+++ b/community/14-shenyu-client-golang-release-guide.md
@@ -171,9 +171,10 @@ mkdir -p ~/svn_release/dev/
 cd ~/svn_release/dev/
 svn --username=${LDAP ID} co https://dist.apache.org/repos/dist/dev/shenyu
 mkdir -p ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+git archive --format=tar  --prefix=shenyu-client-golang-${PUBLISH.VERSION}/ ${PUBLISH.VERSION} | gzip > shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz
 cd ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-cp -f ~/shenyu/shenyu-client-golang/target/*.zip ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-cp -f ~/shenyu/shenyu-client-golang/target/*.zip.asc ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+cp -f ~/shenyu/shenyu-client-golang/*.src.tar.gz ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+cp -f ~/shenyu/shenyu-client-golang/*.src.tar.gz.asc ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
 ```
 
 **3. Adding hashes**
@@ -181,7 +182,7 @@ cp -f ~/shenyu/shenyu-client-golang/target/*.zip.asc ~/svn_release/dev/shenyu/sh
 Follow [Requirements for cryptographic signatures and checksums](https://infra.apache.org/release-distribution#sigs-and-sums) [7] instructions.
 
 ```shell
-shasum -a 512 shenyu-client-golang-${PUBLISH.VERSION}-src.zip > shenyu-client-golang-${PUBLISH.VERSION}-src.zip.sha512
+shasum -a 512 shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz  > shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.sha512
 ```
 
 **4. Submit the new release**
@@ -199,7 +200,7 @@ svn --username=${LDAP ID} commit -m "release shenyu-client-golang ${PUBLISH.VERS
 Follow [Checking Hashes](https://www.apache.org/info/verification.html#CheckingHashes) [8] instructions.
 
 ```shell
-shasum -c shenyu-client-golang-${PUBLISH.VERSION}-src.zip.sha512
+shasum -c shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.sha512
 ```
 
 **2. Verifying GPG Signatures**
@@ -210,7 +211,7 @@ Follow [Checking Signatures](https://www.apache.org/info/verification.html#Check
 curl https://downloads.apache.org/shenyu/KEYS >> KEYS
 gpg --import KEYS
 cd ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-gpg --verify shenyu-client-golang-${PUBLISH.VERSION}-src.zip.asc shenyu-client-golang-${PUBLISH.VERSION}-src.zip
+gpg --verify shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.asc shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz
 ```
 
 **3. Ensure that SVN is consistent with GitHub source code**
@@ -220,7 +221,8 @@ Follow [Incubator Release Checklist](https://cwiki.apache.org/confluence/display
 ```
 wget https://github.com/apache/shenyu/shenyu-client-golang/archive/v${PUBLISH.VERSION}.zip
 unzip v${PUBLISH.VERSION}.zip
-unzip shenyu-client-golang-${PUBLISH.VERSION}-src.zip
+mv shenyu-client-golang-${PUBLISH.VERSION} shenyu-client-golang-${PUBLISH.VERSION}-src
+unzip shenyu-client-golang-${PUBLISH.VERSION}.zip
 diff -r -x "shenyu-examples" -x "shenyu-integrated-test" -x "static" shenyu-client-golang-${PUBLISH.VERSION}-src shenyu-client-golang-${PUBLISH.VERSION}
 ```
 
@@ -363,7 +365,7 @@ Follow [Uploading packages](https://infra.apache.org/release-publishing.html#upl
 
 ```shell
 svn mv https://dist.apache.org/repos/dist/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION} hhttps://dist.apache.org/repos/dist/release/shenyu/shenyu-client-golang/${PUBLISH.VERSION} -m "transfer packages for ${PUBLISH.VERSION}"
-svn delete hhttps://dist.apache.org/repos/dist/release/shenyu/shenyu-client-golang/${PREVIOUS.RELEASE.VERSION}
+svn delete hhttps://dist.apache.org/repos/dist/dev/shenyu/shenyu-client-golang/${PREVIOUS.RELEASE.VERSION}
 ```
 
 **2. Finish GitHub release**
diff --git a/i18n/zh/docusaurus-plugin-content-docs-community/current/14-shenyu-client-golang-release-guide.md b/i18n/zh/docusaurus-plugin-content-docs-community/current/14-shenyu-client-golang-release-guide.md
index c009d540f3..9f58e41f10 100755
--- a/i18n/zh/docusaurus-plugin-content-docs-community/current/14-shenyu-client-golang-release-guide.md
+++ b/i18n/zh/docusaurus-plugin-content-docs-community/current/14-shenyu-client-golang-release-guide.md
@@ -171,9 +171,10 @@ mkdir -p ~/svn_release/dev/
 cd ~/svn_release/dev/
 svn --username=${LDAP ID} co https://dist.apache.org/repos/dist/dev/shenyu
 mkdir -p ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+git archive --format=tar  --prefix=shenyu-client-golang-${PUBLISH.VERSION}/ ${PUBLISH.VERSION} | gzip > shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz
 cd ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-cp -f ~/shenyu/shenyu-client-golang/target/*.zip ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-cp -f ~/shenyu/shenyu-client-golang/target/*.zip.asc ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+cp -f ~/shenyu/shenyu-client-golang/*.src.tar.gz ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
+cp -f ~/shenyu/shenyu-client-golang/*.src.tar.gz.asc ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
 ```
 
 **3. 添加校验文件**
@@ -181,7 +182,7 @@ cp -f ~/shenyu/shenyu-client-golang/target/*.zip.asc ~/svn_release/dev/shenyu/sh
 根据 [Requirements for cryptographic signatures and checksums](https://infra.apache.org/release-distribution#sigs-and-sums) [7] 的说明添加校验文件。
 
 ```shell
-shasum -a 512 shenyu-client-golang-${PUBLISH.VERSION}-src.zip > shenyu-client-golang-${PUBLISH.VERSION}-src.zip.sha512
+shasum -a 512 shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz  > shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.sha512
 ```
 
 **4. 提交新版本**
@@ -199,7 +200,7 @@ svn --username=${LDAP ID} commit -m "release shenyu-client-golang ${PUBLISH.VERS
 根据 [Checking Hashes](https://www.apache.org/info/verification.html#CheckingHashes) [8] 的说明验证 sha512 校验和。
 
 ```shell
-shasum -c shenyu-client-golang-${PUBLISH.VERSION}-src.zip.sha512
+shasum -c shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.sha512
 ```
 
 **2. 验证 GPG 签名**
@@ -210,7 +211,7 @@ shasum -c shenyu-client-golang-${PUBLISH.VERSION}-src.zip.sha512
 curl https://downloads.apache.org/shenyu/KEYS >> KEYS
 gpg --import KEYS
 cd ~/svn_release/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION}
-gpg --verify shenyu-client-golang-${PUBLISH.VERSION}-src.zip.asc shenyu-client-golang-${PUBLISH.VERSION}-src.zip
+gpg --verify shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz.asc shenyu-client-golang-${PUBLISH.VERSION}-src.tar.gz
 ```
 
 **3. 确保 SVN 与 GitHub 源码一致**
@@ -220,7 +221,8 @@ gpg --verify shenyu-client-golang-${PUBLISH.VERSION}-src.zip.asc shenyu-client-g
 ```
 wget https://github.com/apache/shenyu/shenyu-client-golang/archive/v${PUBLISH.VERSION}.zip
 unzip v${PUBLISH.VERSION}.zip
-unzip shenyu-client-golang-${PUBLISH.VERSION}-src.zip
+mv shenyu-client-golang-${PUBLISH.VERSION} shenyu-client-golang-${PUBLISH.VERSION}-src
+unzip shenyu-client-golang-${PUBLISH.VERSION}.zip
 diff -r -x "shenyu-examples" -x "shenyu-integrated-test" -x "static" shenyu-client-golang-${PUBLISH.VERSION}-src shenyu-client-golang-${PUBLISH.VERSION}
 ```
 
@@ -364,7 +366,7 @@ Thanks everyone for taking the time to verify and vote for the release!
 
 ```shell
 svn mv https://dist.apache.org/repos/dist/dev/shenyu/shenyu-client-golang/${PUBLISH.VERSION} hhttps://dist.apache.org/repos/dist/release/shenyu/shenyu-client-golang/${PUBLISH.VERSION} -m "transfer packages for ${PUBLISH.VERSION}"
-svn delete hhttps://dist.apache.org/repos/dist/release/shenyu/shenyu-client-golang/${PREVIOUS.RELEASE.VERSION}
+svn delete hhttps://dist.apache.org/repos/dist/dev/shenyu/shenyu-client-golang/${PREVIOUS.RELEASE.VERSION}
 ```
 
 **2. 完成 GitHub 发布**