tools/bump: resolve go.mod targets before calling go get

`go get -u` takes the highest semver the proxy offers: a fork's stray tag
sorting above its real branch, or a module that has moved and kept
tagging under the old path. Resolving first refuses both, and names the
compare link for every version that does move.
This commit is contained in:
Kristoffer Dalby
2026-09-23 07:28:01 +00:00
parent d59c1ed209
commit 823db85509
6 changed files with 467 additions and 19 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func applyOapiCodegen(ctx context.Context, r *repo) (change, error) {
return change{}, err
}
want, err := latestVersion(ctx, "github.com/oapi-codegen/oapi-codegen/v2")
want, err := latestVersion(ctx, "github.com/oapi-codegen/oapi-codegen/v2", have)
if err != nil {
return change{}, err
}