From 01aab584eafefcfdef9883c941979a92577fed27 Mon Sep 17 00:00:00 2001 From: canglan Date: Tue, 23 Jun 2026 16:26:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Makefile=20tidy/build=20=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E4=BC=A0=E9=80=92=20GOPROXY/GOPRIVATE=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend-go/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend-go/Makefile b/backend-go/Makefile index 71bff8c..ddaca5d 100644 --- a/backend-go/Makefile +++ b/backend-go/Makefile @@ -1,19 +1,20 @@ # Go 代理(国内环境使用 goproxy.cn) GOPROXY ?= https://goproxy.cn,direct +GOPRIVATE ?= hz-gitea.sea-studio.top -.PHONY: build run dev tidy clean +.PHONY: tidy build run dev clean build: - GOPROXY=$(GOPROXY) go build -o sharedclassmanager ./cmd/server + GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) GONOSUMCHECK=$(GOPRIVATE) GONOSUMDB=$(GOPRIVATE) go build -o sharedclassmanager ./cmd/server run: - ./sharedclassmanager + GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) go run ./cmd/server dev: - GOPROXY=$(GOPROXY) go run ./cmd/server + GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) go run ./cmd/server tidy: - GOPROXY=$(GOPROXY) go mod tidy + GOPROXY=$(GOPROXY) GOPRIVATE=$(GOPRIVATE) GONOSUMCHECK=$(GOPRIVATE) GONOSUMDB=$(GOPRIVATE) go mod tidy clean: rm -f sharedclassmanager