From 3e6ca3a506fc89f19277b3c19b751847b3864185 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Thu, 20 Oct 2022 10:22:10 -0400 Subject: [PATCH] cmd/go/internal/modload: update TestQueryImport to pass with tagged versions of x/net For #48523. Change-Id: Ied35d15462cbae1002e1db1e6e119a6c9f8323da Reviewed-on: https://go-review.googlesource.com/c/go/+/444156 Run-TryBot: Bryan Mills Reviewed-by: Than McIntosh TryBot-Result: Gopher Robot Auto-Submit: Bryan Mills --- src/cmd/go/internal/modload/import_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/internal/modload/import_test.go b/src/cmd/go/internal/modload/import_test.go index 65a889ec52..eb4f5d64d3 100644 --- a/src/cmd/go/internal/modload/import_test.go +++ b/src/cmd/go/internal/modload/import_test.go @@ -27,7 +27,7 @@ var importTests = []struct { }, { path: "golang.org/x/net", - err: `module golang.org/x/net@.* found \(v0.0.0-.*\), but does not contain package golang.org/x/net`, + err: `module golang.org/x/net@.* found \(v[01]\.\d+\.\d+\), but does not contain package golang.org/x/net`, }, { path: "golang.org/x/text",