You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by yu...@apache.org on 2025/04/15 07:39:47 UTC

(opendal) branch binding-go-reader-at updated: fix(bindings/go): broken build script in README

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

yuchanns pushed a commit to branch binding-go-reader-at
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/binding-go-reader-at by this push:
     new eb2e0b633 fix(bindings/go): broken build script in README
eb2e0b633 is described below

commit eb2e0b6339626e71b7b359808738d80ab6eb9794
Author: Hanchin Hsieh <me...@yuchanns.xyz>
AuthorDate: Tue Apr 15 15:39:38 2025 +0800

    fix(bindings/go): broken build script in README
---
 bindings/go/README.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/bindings/go/README.md b/bindings/go/README.md
index 7bcb29243..bc00d4246 100644
--- a/bindings/go/README.md
+++ b/bindings/go/README.md
@@ -256,7 +256,7 @@ export SERVICE="\$OPENDAL_TEST"
 # Get architecture
 architecture=\$(uname -m)
 if [ "\$architecture" = "x86_64" ]; then
-    ARCH="x86_64"
+    ARCH="amd64"
     GOARCH="amd64"
 elif [ "\$architecture" = "aarch64" ] || [ "\$architecture" = "arm64" ]; then
     ARCH="arm64"
@@ -274,15 +274,18 @@ cd -
 export GITHUB_WORKSPACE="\$PWD/opendal-go-services"
 export VERSION="latest"
 export TARGET="linux"
-export DIR="\$GITHUB_WORKSPACE/libopendal_c_\$VERSION_\$SERVICE_\$TARGET"
+export DIR="\$GITHUB_WORKSPACE/libopendal_c_\${VERSION}_\${SERVICE}_\${TARGET}"
 
 # Create directory if not exists
 mkdir -p "\$DIR"
 
-export OUTPUT="\$DIR/libopendal_c_\$VERSION_\$SERVICE_\$TARGET.so"
+export OUTPUT="\$DIR/libopendal_c.\$TARGET.so.zst"
 # Compress with zstd
 zstd -19 opendal/bindings/c/target/debug/libopendal_c.so -o \$OUTPUT
 
+# Set environment variables for test
+export MATRIX='{"build": [{"target":"linux", "goos":"linux", "goarch": "'\$GOARCH'"}], "service": ["fs"]}'
+
 # Generate code
 cd opendal-go-services/internal/generate
 go run generate.go
@@ -291,9 +294,6 @@ cd -
 # Delete unnecessary files
 rm -rf \$DIR
 
-# Set environment variables for test
-export MATRIX='{"build": [{"target":"linux", "goos":"linux", "goarch": "'\$GOARCH'"}], "service": ["fs"]}'
-
 # Run tests
 go test ./opendal/bindings/go/tests/behavior_tests -v -run TestBehavior
 EOF