tstest/integration: don't include stdlib deps in go generate output

Causes too much churn for zero benefit.

Change-Id: I838f8cdb5723f122f11dd4bbce5e9c07755c3cd9
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-11-03 11:56:25 -07:00
committed by Brad Fitzpatrick
parent c467ed0b62
commit 6d82a18916
6 changed files with 5 additions and 117 deletions

View File

@ -15,6 +15,7 @@ import (
"log"
"os"
"os/exec"
"strings"
)
func main() {
@ -52,6 +53,10 @@ import (
// process and can cache a prior success when a dependency changes.
`)
for _, dep := range x.Imports {
if !strings.Contains(dep, ".") {
// Omit stanard library deps.
continue
}
fmt.Fprintf(&out, "\t_ %q\n", dep)
}
fmt.Fprintf(&out, ")\n")