From d5c1d093a1a8bf51014e01978c3c2977b9a0dbb4 Mon Sep 17 00:00:00 2001 From: AJ Heller Date: Mon, 15 Mar 2021 15:28:48 -0700 Subject: [PATCH] Create a go module for http2 interop test, fixing breakage from upgrade to go v1.16 (#25707) Go v1.16 introduced module-aware commands by default. This version upgrade broke our http2 interop tests (see #25660). Setting the go environment variable `GO111MODULE` to "auto" makes go tools behave as they did before the v1.16 change, but will not be compatible with v1.17. This PR introduces a minimal go.mod file for the interop test to appease go v1.16. Docs on the flag: https://golang.org/ref/mod#mod-commands Recent discussion on golang/go: https://github.com/golang/go/issues/31997#issuecomment-782864390 --- tools/http2_interop/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/http2_interop/go.mod diff --git a/tools/http2_interop/go.mod b/tools/http2_interop/go.mod new file mode 100644 index 00000000000..149c38e7d3f --- /dev/null +++ b/tools/http2_interop/go.mod @@ -0,0 +1,3 @@ +module github.com/grpc/grpc/tools/http2_interop + +go 1.16