📝 修正代理命令
This commit is contained in:
parent
f18c6c58e5
commit
a408baf02b
|
@ -31,7 +31,7 @@ workflow:
|
||||||
- cd $WORKSPACE
|
- cd $WORKSPACE
|
||||||
- go version
|
- go version
|
||||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
|
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -v
|
- go test ./... -v
|
||||||
- go run main.go
|
- go run main.go
|
||||||
|
|
|
@ -13,7 +13,7 @@ build:golang:1.21:
|
||||||
- echo $CI_JOB_ID
|
- echo $CI_JOB_ID
|
||||||
- go version
|
- go version
|
||||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
|
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -v
|
- go test ./... -v
|
||||||
- go run main.go
|
- go run main.go
|
||||||
|
@ -111,7 +111,7 @@ build:golang:1.21-alpine3.18:
|
||||||
- echo $CI_JOB_ID
|
- echo $CI_JOB_ID
|
||||||
- go version
|
- go version
|
||||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
|
#- go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
|
||||||
- go mod download
|
- go mod download
|
||||||
- go test ./... -v
|
- go test ./... -v
|
||||||
- go run main.go
|
- go run main.go
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go env -w GOPROXY=https://goproxy.cn,direct
|
go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
# go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
|
# go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
|
||||||
go get -u github.com/xuxiaowei-com-cn/git-go@main
|
go get -u github.com/xuxiaowei-com-cn/git-go@main
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue