fix: attach commands after Core startup, disable go-build SDK conflict
Commands now attach AFTER i18n service starts — translations resolve. go-build imports commented out until kin-openapi dep conflict is fixed. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
7e7b83cd70
commit
d67295ad2a
2 changed files with 7 additions and 6 deletions
|
|
@ -8,9 +8,10 @@ import (
|
|||
"forge.lthn.ai/core/cli/pkg/cli"
|
||||
|
||||
// Ecosystem commands — self-register via init() + cli.RegisterCommands()
|
||||
_ "forge.lthn.ai/core/go-build/cmd/build"
|
||||
_ "forge.lthn.ai/core/go-build/cmd/ci"
|
||||
_ "forge.lthn.ai/core/go-build/cmd/sdk"
|
||||
// TODO: go-build has SDK dep conflict (kin-openapi vs oasdiff), uncomment when fixed
|
||||
// _ "forge.lthn.ai/core/go-build/cmd/build"
|
||||
// _ "forge.lthn.ai/core/go-build/cmd/ci"
|
||||
// _ "forge.lthn.ai/core/go-build/cmd/sdk"
|
||||
_ "forge.lthn.ai/core/go-crypt/cmd/crypt"
|
||||
_ "forge.lthn.ai/core/go-devops/cmd/deploy"
|
||||
_ "forge.lthn.ai/core/go-devops/cmd/dev"
|
||||
|
|
|
|||
|
|
@ -63,9 +63,6 @@ func Init(opts Options) error {
|
|||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
// Attach all registered commands
|
||||
attachRegisteredCommands(rootCmd)
|
||||
|
||||
// Build signal service options
|
||||
var signalOpts []SignalOption
|
||||
if opts.OnReload != nil {
|
||||
|
|
@ -98,6 +95,9 @@ func Init(opts Options) error {
|
|||
initErr = err
|
||||
return
|
||||
}
|
||||
|
||||
// Attach registered commands AFTER Core startup so i18n is available
|
||||
attachRegisteredCommands(rootCmd)
|
||||
})
|
||||
return initErr
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue