1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

feat: 限制版本为 latest 应用升级 (#3816)

This commit is contained in:
zhengkunwang 2024-02-04 18:15:41 +08:00 committed by GitHub
parent eef445c1eb
commit c169f211a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1066,7 +1066,7 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool) ([]respons
}
var versions []string
for _, detail := range details {
if detail.IgnoreUpgrade {
if detail.IgnoreUpgrade || installed.Version == "latest" {
continue
}
if common.IsCrossVersion(installed.Version, detail.Version) && !app.CrossVersionUpdate {