multica-ai/multica · error
--target-version is required
Error message
--target-version is required
What it means
Error "--target-version is required" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_runtime.go:299
}
if strings.TrimSpace(args[1]) == "" {
fmt.Fprintf(os.Stderr, "Custom name cleared; runtime is now %q.\n", strVal(rt, "name"))
} else {
fmt.Fprintf(os.Stderr, "Runtime renamed to %q.\n", strVal(rt, "custom_name"))
}
return nil
}
func runRuntimeUpdate(cmd *cobra.Command, args []string) error {
client, err := newAPIClient(cmd)
if err != nil {
return err
}
targetVersion, _ := cmd.Flags().GetString("target-version")
if targetVersion == "" {
return fmt.Errorf("--target-version is required")
}
ctx, cancel := context.WithTimeout(context.Background(), cli.AtLeastAPITimeout(150*time.Second))
defer cancel()
body := map[string]any{
"target_version": targetVersion,
}
var update map[string]any
if err := client.PostJSON(ctx, "/api/runtimes/"+args[0]+"/update", body, &update); err != nil {
return fmt.Errorf("initiate update: %w", err)
}
wait, _ := cmd.Flags().GetBool("wait")
if !wait {
output, _ := cmd.Flags().GetString("output")
if output == "json" {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Pass --target-version with the version to update to.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_runtime.go:299 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/016b15cd056524bb.
Report an issue: GitHub.