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

Commit 166cae2

Browse files
authored
Merge pull request #103 from joonas/set-goproxy-to-default-if-empty
Set GOPROXY to default if it is not configured
2 parents d809ac3 + 05fb110 commit 166cae2

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
@@ -14,7 +14,9 @@
1414

1515
# Use GOPROXY environment variable if set
1616
GOPROXY := $(shell go env GOPROXY)
17-
GOPROXY ?= https://proxy.golang.org
17+
ifeq ($(GOPROXY),)
18+
GOPROXY := https://proxy.golang.org
19+
endif
1820
export GOPROXY
1921

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

0 commit comments

Comments
 (0)