Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(build): pass GOPROXY to the ragflow-cli go build (#18925)

MarMar Labs5a9d14925aea
diff --git a/build.sh b/build.sh
index 27e6fcdb18..18a873d6b6 100755
--- a/build.sh
+++ b/build.sh
@@ -317,7 +317,7 @@ build_go() {
[ -n "$STRIP_SYMBOLS" ] && strip_flags=(-ldflags="-s -w")
echo "Building RAGFlow binary: $RAGFLOW_CLI_BINARY and $RAGFLOW_SERVER_BINARY"
- GOPROXY=${GOPROXY:-https://goproxy.cn,https://proxy.golang.org,direct}
+ GOPROXY=${GOPROXY:-https://goproxy.cn,https://proxy.golang.org,direct} \
go build "${strip_flags[@]}" -o "$RAGFLOW_CLI_BINARY" cmd/ragflow-cli.go
GOPROXY=${GOPROXY:-https://goproxy.cn,https://proxy.golang.org,direct} CGO_ENABLED=1 \