diff --git a/tools/dpvs-agent/cmd/dpvs-agent-server/Makefile b/tools/dpvs-agent/cmd/dpvs-agent-server/Makefile index e5cd00eef..61b1dc149 100644 --- a/tools/dpvs-agent/cmd/dpvs-agent-server/Makefile +++ b/tools/dpvs-agent/cmd/dpvs-agent-server/Makefile @@ -11,7 +11,7 @@ RM = rm all: $(TARGET) -$(TARGET): +$(TARGET): go-proxy -$(GO) mod tidy $(GO_BUILD) -o $@ @@ -19,6 +19,9 @@ clean: $(GO_CLEAN) -$(RM) $(TARGET) +go-proxy: + $(GO) env -w GOPROXY=https://goproxy.cn,direct + install: $(TARGET) $(INSTALL) -m 0755 -d $(INSDIR) $(INSTALL) -m 0744 $(TARGET) $(INSDIR) diff --git a/tools/healthcheck/Makefile b/tools/healthcheck/Makefile index fe4d9400a..7f00cfa01 100644 --- a/tools/healthcheck/Makefile +++ b/tools/healthcheck/Makefile @@ -9,10 +9,13 @@ GO_CLEAN = $(GO) clean all: $(TARGET) -$(TARGET): +$(TARGET): go-proxy -$(GO) mod tidy $(GO_BUILD) -o $@ +go-proxy: + $(GO) env -w GOPROXY=https://goproxy.cn,direct + clean: $(GO_CLEAN)