From 694f226586cf0a23d999a22e0945dd4871e198dd Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Tue, 24 Nov 2020 15:38:18 -0800 Subject: [PATCH] interop: Enable Go modules support --- .../dockerfile/interoptest/grpc_interop_go/build_interop.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/dockerfile/interoptest/grpc_interop_go/build_interop.sh b/tools/dockerfile/interoptest/grpc_interop_go/build_interop.sh index b11ace3a4e7..6e162ead473 100755 --- a/tools/dockerfile/interoptest/grpc_interop_go/build_interop.sh +++ b/tools/dockerfile/interoptest/grpc_interop_go/build_interop.sh @@ -16,6 +16,12 @@ # Builds Go interop server and client in a base image. set -e +# Turn on support for Go modules. +# The make commands executed from the script eventually call `go get`, and +# without Go modules support, those will download dependencies at head, which +# is not what we want. +export GO111MODULE=on + # Clone just the grpc-go source code without any dependencies. # We are cloning from a local git repo that contains the right revision # to test instead of using "go get" to download from Github directly.