From b714c92eb54e366a9a7d75ffe10d23fdedcdff6f Mon Sep 17 00:00:00 2001 From: Lucas Roesler Date: Sat, 9 Apr 2022 19:17:36 +0200 Subject: [PATCH] fix: remove debug statement from golang template Remove a stray `go env` statement that prints the go environment variables during build Signed-off-by: Lucas Roesler --- .gitignore | 2 ++ template/go/Dockerfile | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 86da40ad..d6c1d6a7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ build .settings /**/package-lock.json /**/node_modules +/go.work +.vscode diff --git a/template/go/Dockerfile b/template/go/Dockerfile index 8410a980..ce655c44 100644 --- a/template/go/Dockerfile +++ b/template/go/Dockerfile @@ -28,7 +28,6 @@ COPY . . RUN test -z "$(gofmt -l $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./function/vendor/*"))" || { echo "Run \"gofmt -s -w\" on your Golang code"; exit 1; } WORKDIR /go/src/handler/function -RUN go env RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=${CGO_ENABLED} go test ./... -cover