#8 change update mod.
This commit is contained in:
@@ -156,6 +156,10 @@ func main() {
|
||||
logger.Errorf(ctx, "%s: failed: %v", u.Module.Path, u.Err)
|
||||
return
|
||||
}
|
||||
v, ok := modules.ModMajor(u.Module.Path)
|
||||
if ok && !strings.Contains(u.Version, v) {
|
||||
u.Module.Path = u.Module.Path[:len(u.Module.Path)-2] + v
|
||||
}
|
||||
mvs[u.Module.Path] = u
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user