mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-03 05:13:36 +09:00
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:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user