Use Go module mirror
This speeds up the build process and protects against disappearing
dependencies.
@@ -9,6 +9,10 @@ else
VERSION := $(TAG)-dirty
endif
+# Use the Go module mirror (https://blog.golang.org/module-mirror-launch).
+# This speeds up build time and protects against disappearing dependencies.
+export GOPROXY=https://proxy.golang.org
+
LDFLAGS := "-X github.com/kinvolk/lokoctl/cli/cmd.version=$(VERSION) -extldflags '-static'"
.NOTPARALLEL:
