From af149dbefc4fa5348ee9a1c9fffee4907a0bf213 Mon Sep 17 00:00:00 2001 From: Thien Tran Date: Fri, 16 Jun 2023 05:15:09 -0700 Subject: [PATCH] Disable goproxy Signed-off-by: Thien Tran --- cloudflare-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cloudflare-build.sh b/cloudflare-build.sh index c6018ee..550344d 100644 --- a/cloudflare-build.sh +++ b/cloudflare-build.sh @@ -1,6 +1,10 @@ #!/bin/bash -CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest +export GOPROXY=direct +export GOSUMD=off +export CGO_ENABLED=1 + +go install -tags extended github.com/gohugoio/hugo@latest if [ "$CF_PAGES_BRANCH" == "main" ]; then hugo --minify