#8 change update mod.

This commit is contained in:
Gorbunov Kirill Andreevich
2024-03-16 01:56:36 +03:00
parent 5a6fd69c38
commit 825d778582
3 changed files with 8 additions and 7 deletions

View File

@@ -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
},
}