mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
Move GOPROXY from Makefile to cirrus.yml
GOPROXY's default value is "https://proxy.golang.org,direct" since go 1.13, so it is redundant to set it explicitly. For some reason though, GOPROXY in Cirrus CI is set to direct, which makes things such as go mod tidy very slow. So, set the proper (default) value for in in .cirrus.yml. Do the same for GOSUMDB. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -7,6 +7,9 @@ env:
|
|||||||
####
|
####
|
||||||
# Name of the ultimate destination branch for this CI run, PR or post-merge.
|
# Name of the ultimate destination branch for this CI run, PR or post-merge.
|
||||||
DEST_BRANCH: "main"
|
DEST_BRANCH: "main"
|
||||||
|
# Sane (default) value for GOPROXY and GOSUMDB.
|
||||||
|
GOPROXY: "https://proxy.golang.org,direct"
|
||||||
|
GOSUMDB: "sum.golang.org"
|
||||||
# Overrides default location (/tmp/cirrus) for repo clone
|
# Overrides default location (/tmp/cirrus) for repo clone
|
||||||
GOPATH: &gopath "/var/tmp/go"
|
GOPATH: &gopath "/var/tmp/go"
|
||||||
GOCACHE: "${GOPATH}/cache"
|
GOCACHE: "${GOPATH}/cache"
|
||||||
|
2
Makefile
2
Makefile
@ -20,8 +20,6 @@
|
|||||||
### Variables & Definitions
|
### Variables & Definitions
|
||||||
###
|
###
|
||||||
|
|
||||||
export GOPROXY=https://proxy.golang.org
|
|
||||||
|
|
||||||
GO ?= go
|
GO ?= go
|
||||||
GO_LDFLAGS:= $(shell if $(GO) version|grep -q gccgo ; then echo "-gccgoflags"; else echo "-ldflags"; fi)
|
GO_LDFLAGS:= $(shell if $(GO) version|grep -q gccgo ; then echo "-gccgoflags"; else echo "-ldflags"; fi)
|
||||||
GOCMD = CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO)
|
GOCMD = CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO)
|
||||||
|
Reference in New Issue
Block a user