After tools CL 612038, the package astutil stops being vendored, but
_gen/rulegen.go needs to import this package.
In particular, after update golang.org/x/tools, the package astutil
is deleted from the vendor directory, and got error when run TestStdlib
in longtest. So in this CL, we make _gen an actual submodule and
skip it in TestStdlib.
Change-Id: I76f77b66427f6490b4746698711a6e307ad2ba79
Reviewed-on: https://go-review.googlesource.com/c/go/+/629015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
--- /dev/null
+module _gen
+
+go 1.24
+
+require golang.org/x/tools v0.27.0
--- /dev/null
+golang.org/x/tools v0.27.0 h1:qEKojBykQkQ4EynWy4S8Weg69NumxKdn40Fce3uc/8o=
+golang.org/x/tools v0.27.0/go.mod h1:sUi0ZgbwW9ZPAq26Ekut+weQPR5eIM6GQLQ1Yjm1H0Q=
// Package paths of excluded packages.
var excluded = map[string]bool{
- "builtin": true,
+ "builtin": true,
+ "cmd/compile/internal/ssa/_gen": true,
}
// printPackageMu synchronizes the printing of type-checked package files in
// Package paths of excluded packages.
var excluded = map[string]bool{
- "builtin": true,
+ "builtin": true,
+ "cmd/compile/internal/ssa/_gen": true,
}
// printPackageMu synchronizes the printing of type-checked package files in