You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(server): internal/server/deepdoc fails to compile without cgo #21990
In internal/server/deepdoc/server.go, RegisterNativeDeepDoc references infnative.Register, infnative.Serving, native.ValidateInferenceConfig, native.SetIntraOpThreads, and native.SetInferenceLimit. Both ragflow/internal/deepdoc/native and ragflow/internal/deepdoc/parser/pdf/inference/native_analyzer are gated with //go:build cgo. Because server.go itself has no build tag and lacks a !cgo fallback, compiling ragflow_server or running tools/checks under CGO_ENABLED=0 fails with multiple undefined symbol errors:
internal/server/deepdoc should provide a !cgo fallback for RegisterNativeDeepDoc that fails closed (returning ErrDeepDocCGORequired), mirroring the pattern established across sibling packages (e.g. internal/agentic_rag/decisionhead), allowing non-cgo tools, go vet, and compilation to succeed while preserving the P0 fail-fast requirement when cgo is disabled.
Activity