Skip to content

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

Go: fix cgo build (#16724)

Jin Haicb93883f3f8c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c9eafb8971..119af012fb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -424,6 +424,7 @@ jobs:
output="${DIST_DIR}/${CLI_NAME}-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}"
echo "Building ${{ matrix.goos }}/${{ matrix.goarch }} -> ${output}"
+ CGO_ENABLED=0 \
GOOS="${{ matrix.goos }}" \
GOARCH="${{ matrix.goarch }}" \
go build \
@@ -458,6 +459,7 @@ jobs:
exit 1
}
+ $env:CGO_ENABLED = "0"
$env:CC = $cc
$env:GOOS = "${{ matrix.goos }}"
$env:GOARCH = "${{ matrix.goarch }}"