Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:construction_worker: Update GOPROXY

Daniele821bf1ac634
diff --git a/kernel/harmony/build-win.sh b/kernel/harmony/build-win.sh
index a8d6008516..8ffd1ca0fe 100755
--- a/kernel/harmony/build-win.sh
+++ b/kernel/harmony/build-win.sh
@@ -17,7 +17,7 @@ export CFLAGS="-target x86_64-linux-ohos --sysroot=${OHOS_NDK_HOME}/native/sysro
export CXXFLAGS="-target x86_64-linux-ohos --sysroot=${OHOS_NDK_HOME}/native/sysroot -D__MUSL__"
export LLVMCONFIG=$OHOS_NDK_HOME/native/llvm/bin/llvm-config
-export GOPROXY=https://mirrors.aliyun.com/goproxy/
+export GOPROXY=https://mirrors.aliyun.com/goproxy/,https://goproxy.cn,direct
export CGO_ENABLED=1
export GOOS=android
export GOARCH=amd64
diff --git a/kernel/harmony/build.sh b/kernel/harmony/build.sh
index 6893e3f250..06e82bd35a 100755
--- a/kernel/harmony/build.sh
+++ b/kernel/harmony/build.sh
@@ -17,7 +17,7 @@ export CFLAGS="-target aarch64-linux-ohos --sysroot=${OHOS_NDK_HOME}/native/sysr
export CXXFLAGS="-target aarch64-linux-ohos --sysroot=${OHOS_NDK_HOME}/native/sysroot -D__MUSL__"
export LLVMCONFIG=$OHOS_NDK_HOME/native/llvm/bin/llvm-config
-export GOPROXY=https://mirrors.aliyun.com/goproxy/
+export GOPROXY=https://mirrors.aliyun.com/goproxy/,https://goproxy.cn,direct
export CGO_ENABLED=1
export GOOS=android
export GOARCH=arm64
diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.sh
index 47beeaa1cf..e62a5ea456 100755
--- a/scripts/darwin-build.sh
+++ b/scripts/darwin-build.sh
@@ -63,7 +63,7 @@ echo 'Building Kernel'
cd "$PROJECT_ROOT/kernel"
go version
export GO111MODULE=on
-export GOPROXY=https://mirrors.aliyun.com/goproxy/
+export GOPROXY=https://mirrors.aliyun.com/goproxy/,https://goproxy.cn,direct
export CGO_ENABLED=1
export GOOS=darwin
diff --git a/scripts/linux-build.sh b/scripts/linux-build.sh
index 0893136467..c867a02b3c 100755
--- a/scripts/linux-build.sh
+++ b/scripts/linux-build.sh
@@ -63,7 +63,7 @@ echo 'Building Kernel'
cd "$PROJECT_ROOT/kernel"
go version
export GO111MODULE=on
-export GOPROXY=https://mirrors.aliyun.com/goproxy/
+export GOPROXY=https://mirrors.aliyun.com/goproxy/,https://goproxy.cn,direct
export CGO_ENABLED=1
export GOOS=linux
diff --git a/scripts/win-build.bat b/scripts/win-build.bat
index d44a6aa3d1..18ec7348a1 100755
--- a/scripts/win-build.bat
+++ b/scripts/win-build.bat
@@ -93,7 +93,7 @@ if errorlevel 1 (
)
go version
set GO111MODULE=on
-set GOPROXY=https://mirrors.aliyun.com/goproxy/
+set GOPROXY=https://mirrors.aliyun.com/goproxy/,https://goproxy.cn,direct
set CGO_ENABLED=1
set GOOS=windows