Resolve circular import

This commit is contained in:
3wc
2025-09-02 12:00:47 -04:00
parent 17ff200f13
commit 5fe0ac61d7
4 changed files with 65 additions and 57 deletions

View File

@ -16,6 +16,7 @@ import (
appPkg "coopcloud.tech/abra/pkg/app"
"coopcloud.tech/abra/pkg/client"
"coopcloud.tech/abra/pkg/deploy"
"coopcloud.tech/abra/pkg/dns"
"coopcloud.tech/abra/pkg/formatter"
"coopcloud.tech/abra/pkg/i18n"
@ -216,7 +217,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
// Gather configs
// Get current configs from existing deployment
currentConfigNames, err := client.GetConfigNamesForStack(cl, app)
currentConfigNames, err := deploy.GetConfigNamesForStack(cl, app)
if err != nil {
log.Fatal(err)
}
@ -242,7 +243,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
newVersion, exists := abraShEnv[versionKey]
if !exists {
log.Warnf("No version found for config %s", configName)
configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing)", configName))
configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing version)", configName))
continue
}
@ -255,7 +256,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
} else {
configInfo = append(configInfo, fmt.Sprintf("%s: %s (new)", configName, newVersion))
}
}
}
// Gather images