tools/bump: bisect go.mod one module at a time

golang.org/x/net deprecated http2.Server, staticcheck failed on
hscontrol/noise.go, and the whole batch of 50 direct requirements was
dropped for it. The bisect tries every atom together first, so one atom
per module costs nothing until something actually breaks.
This commit is contained in:
Kristoffer Dalby
2026-09-09 13:27:51 +00:00
parent 2cf100360d
commit 8ed39eeb0c
2 changed files with 57 additions and 18 deletions
+5 -1
View File
@@ -76,7 +76,11 @@ func applySet(ctx context.Context, r *repo, atoms []atom) ([]string, error) {
return nil, fmt.Errorf("%s: %w", a.Name, err)
}
summaries = append(summaries, summary)
// An atom that found nothing to do reports no summary; listing it
// would fill the report with modules that did not move.
if summary != "" {
summaries = append(summaries, summary)
}
}
err := settle(ctx, r)