Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 05fb110

Browse files
author
Joonas Bergius
committed
Set GOPROXY to default if it is not configured
This is necessary since 'go env GOPROXY' will return an empty string if the value is not set, thus setting GOPROXY to nothing. Signed-off-by: Joonas Bergius <[email protected]>
1 parent 739894d commit 05fb110

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Use GOPROXY environment variable if set
22
GOPROXY := $(shell go env GOPROXY)
3-
GOPROXY ?= https://proxy.golang.org
3+
ifeq ($(GOPROXY),)
4+
GOPROXY := https://proxy.golang.org
5+
endif
46
export GOPROXY
57

68
REGISTRY ?= gcr.io/$(shell gcloud config get-value project)

0 commit comments

Comments
 (0)