cmd/compile/internal/importer: correct a matching error

Change-Id: I2499d6ef1df0cc6bf0be8903ce64c03e1f296d19
GitHub-Last-Rev: 1f759d89be7b40c7fe72b920fc004de3fed8d057
GitHub-Pull-Request: golang/go#73064
Reviewed-on: https://go-review.googlesource.com/c/go/+/660978
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Lin Lin 2025-03-27 04:21:01 +00:00 committed by Gopher Robot
parent 79b809afb3
commit fcd73b0ac3

View File

@ -164,7 +164,7 @@ func TestVersionHandling(t *testing.T) {
_, err := Import(make(map[string]*types2.Package), pkgpath, dir, nil)
if err != nil {
// ok to fail if it fails with a 'not the start of an archive file' error for select files
if strings.Contains(err.Error(), "no longer supported") {
if strings.Contains(err.Error(), "not the start of an archive file") {
switch name {
case "test_go1.8_4.a",
"test_go1.8_5.a":