From 1117f7d2ebd316ce1213a5162d67e8dddc014ebc Mon Sep 17 00:00:00 2001 From: Robert Burke Date: Mon, 26 Jul 2021 09:48:08 -0700 Subject: [PATCH] [BEAM-12656] Fix go-licenses build (#15215) --- release/go-licenses/Dockerfile | 2 +- release/go-licenses/get-licenses.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/release/go-licenses/Dockerfile b/release/go-licenses/Dockerfile index 43e7870311c3..6004f457494d 100644 --- a/release/go-licenses/Dockerfile +++ b/release/go-licenses/Dockerfile @@ -16,7 +16,7 @@ # limitations under the License. ############################################################################### -FROM golang:1.15.0-buster +FROM golang:1.16.0-buster RUN go get github.com/google/go-licenses COPY get-licenses.sh /opt/apache/beam/ ARG sdk_location diff --git a/release/go-licenses/get-licenses.sh b/release/go-licenses/get-licenses.sh index 727fb9b08977..be1e01ddf0e9 100755 --- a/release/go-licenses/get-licenses.sh +++ b/release/go-licenses/get-licenses.sh @@ -19,6 +19,7 @@ set -ex rm -rf /output/* +export GO111MODULE=off go get $sdk_location go-licenses save $sdk_location --save_path=/output/licenses