From bd703d8230d2f5d21b4d6fa2261cb8e0295415cd Mon Sep 17 00:00:00 2001 From: Brian Onn Date: Wed, 18 Mar 2020 21:16:57 -0700 Subject: [PATCH] changes needed for golang/go issue #36364 fix --- go/packages/golist.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/packages/golist.go b/go/packages/golist.go index b4a13ef45..7f770fc35 100644 --- a/go/packages/golist.go +++ b/go/packages/golist.go @@ -731,7 +731,8 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer, } // Old go version? - if strings.Contains(stderr.String(), "flag provided but not defined") { + if strings.Contains(stderr.String(), "flag provided but not defined") || + strings.Contains(stderr.String(), "is an unknown flag") { return nil, goTooOldError{fmt.Errorf("unsupported version of go: %s: %s", exitErr, stderr)} }