]> Cypherpunks repositories - gostls13.git/commit
go/importer: make source importer more tolerant in presence of errors
authorgriesemer <gri@golang.org>
Tue, 15 Aug 2017 12:44:26 +0000 (14:44 +0200)
committerRobert Griesemer <gri@golang.org>
Wed, 16 Aug 2017 15:30:35 +0000 (15:30 +0000)
commitb26ad605a92af65deef30eb196ff2173566ee60f
treeccecf4da0335cb3e8744c9fb7bc80383b7cddcf8
parent9c9df65c539a0e2b1de9094382b87cc0f2748ae3
go/importer: make source importer more tolerant in presence of errors

If the source importer only encounters "soft" type checking errors
it can safely return the type-checked package because it will be
completely set up. This makes the source importer slightly more
robust in the presence of errors.

Fixes #20855.

Change-Id: I5af9ccdb30eee6bca7a0fab872f6057bde521bf3
Reviewed-on: https://go-review.googlesource.com/55730
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/internal/srcimporter/srcimporter.go
src/go/internal/srcimporter/srcimporter_test.go
src/go/internal/srcimporter/testdata/issue20855/issue20855.go [new file with mode: 0644]