chore: not using goproxy by default (#4613)

This commit is contained in:
Kevin Wan
2025-01-29 12:28:47 +08:00
committed by GitHub
parent 9213b8ac27
commit f669d84ce8
12 changed files with 39 additions and 98 deletions

View File

@@ -1,7 +1,9 @@
FROM golang:1.22-alpine
ENV TZ Asia/Shanghai
ENV GOPROXY https://goproxy.cn,direct
# set timezone if you need
# ENV TZ Asia/Shanghai
# if you are in China, you can use the following command to speed up the download
# ENV GOPROXY https://goproxy.cn,direct
WORKDIR /app
COPY goctl /usr/bin/

View File

@@ -23,7 +23,7 @@ if [ $? -ne 0 ]; then
fi
# go mod tidy
GOPROXY=https://goproxy.cn && go mod tidy
go mod tidy
# code inspection
go test -race ./...