diff options
Diffstat (limited to 'src/cmd/go/discovery.go')
-rw-r--r-- | src/cmd/go/discovery.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/go/discovery.go b/src/cmd/go/discovery.go index 75228b52a..b9f427995 100644 --- a/src/cmd/go/discovery.go +++ b/src/cmd/go/discovery.go @@ -43,6 +43,9 @@ func parseMetaGoImports(r io.Reader) (imports []metaImport, err error) { for { t, err = d.Token() if err != nil { + if err == io.EOF { + err = nil + } return } if e, ok := t.(xml.StartElement); ok && strings.EqualFold(e.Name.Local, "body") { |