From 68fffb4ce41e0edadcb4434c85942b50eb4ba32a Mon Sep 17 00:00:00 2001 From: thzxx Date: Wed, 10 Jun 2026 18:17:31 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=E7=BC=96=E8=AF=91=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=8A=A0=20GO111MODULE=3Doff=20=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search-proxy/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/search-proxy/README.md b/search-proxy/README.md index 7973cd8..94a51c4 100644 --- a/search-proxy/README.md +++ b/search-proxy/README.md @@ -37,14 +37,16 @@ cd metona-ollama-desktop/search-proxy go build -o metona-search-proxy . ``` +> 如果没有 `go.mod`(或报 `go.mod file not found`): +> ```bash +> GO111MODULE=off go build -o metona-search-proxy . +> ``` + ### 本地交叉编译(编译好再上传) ```bash -# 编译 Linux 版本 GOOS=linux GOARCH=amd64 go build -o metona-search-proxy . - -# 上传到服务器 -scp metona-search-proxy user@your-server:/opt/metona-search-proxy/ +scp metona-search-proxy user@your-server:/opt/ ``` ---