Skip to content

Commit

Permalink
fix: fix app not main when service is no contain x-casaos (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Mar 22, 2024
1 parent ca83398 commit 0ce66f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package service
import (
"github.com/IceWhaleTech/CasaOS-AppManagement/codegen"
"github.com/IceWhaleTech/CasaOS-AppManagement/common"
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
"github.com/compose-spec/compose-go/loader"
"github.com/compose-spec/compose-go/types"
)
Expand All @@ -14,7 +15,8 @@ func (a *App) StoreInfo() (codegen.AppStoreInfo, error) {

ex, ok := a.Extensions[common.ComposeExtensionNameXCasaOS]
if !ok {
return storeInfo, ErrComposeExtensionNameXCasaOSNotFound
logger.Error("extension `x-casaos` not found")
// return storeInfo, ErrComposeExtensionNameXCasaOSNotFound
}

// add image to store info for check stable version function.
Expand Down

0 comments on commit 0ce66f5

Please sign in to comment.