Makefile: use go proxy

Use GOPROXY=https://proxy.golang.org to speed up fetching dependencies.
Setting it makes `make vendor` six times faster in my local env.

For details please refer to https://proxy.golang.org/.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2019-08-30 11:42:29 +02:00
parent c4b0c7ce05
commit a1c5a1f4d2

View File

@@ -1,5 +1,7 @@
.PHONY: all binary build-container docs docs-in-container build-local clean install install-binary install-completions shell test-integration .install.vndr vendor .PHONY: all binary build-container docs docs-in-container build-local clean install install-binary install-completions shell test-integration .install.vndr vendor
export GOPROXY=https://proxy.golang.org
ifeq ($(shell uname),Darwin) ifeq ($(shell uname),Darwin)
PREFIX ?= ${DESTDIR}/usr/local PREFIX ?= ${DESTDIR}/usr/local
DARWIN_BUILD_TAG=containers_image_ostree_stub DARWIN_BUILD_TAG=containers_image_ostree_stub