multica-ai/multica · error
github_repo: --url is required (no existing url to merge…
Error message
github_repo: --url is required (no existing url to merge with)
What it means
Raised in buildResourceRefFromFlags for github_repo when the merge produced no 'url' key: neither --url was provided nor did the existing row (existingRef) carry a URL to inherit. Since the server overwrites resource_ref wholesale, an update without a URL would clobber it, so the guard fails instead.
Solutions
- Pass --url; there is no existing url to merge with.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/cmd/multica/cmd_project.go:846 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/0a317aa4ecdafaa8.
Report an issue: GitHub.
Appendix: source
Thrown at server/cmd/multica/cmd_project.go:846
}
if hintSet {
hint := strings.TrimSpace(mustString(cmd, "default-branch-hint"))
if hint == "" {
delete(ref, "default_branch_hint")
} else {
ref["default_branch_hint"] = hint
}
}
if refSet {
checkoutRef := strings.TrimSpace(mustString(cmd, "ref"))
if checkoutRef == "" {
delete(ref, "ref")
} else {
ref["ref"] = checkoutRef
}
}
if _, ok := ref["url"]; !ok {
return nil, false, fmt.Errorf("github_repo: --url is required (no existing url to merge with)")
}
return ref, true, nil
case "local_directory":
pathSet := cmd.Flags().Changed("local-path")
daemonSet := cmd.Flags().Changed("daemon-id")
labelSet := cmd.Flags().Changed("ref-label")
modeSet := cmd.Flags().Changed("execution-mode")
if !pathSet && !daemonSet && !labelSet && !modeSet {
return nil, false, nil
}
ref := map[string]any{}
if existingRef != nil {
if p, ok := existingRef["local_path"].(string); ok && strings.TrimSpace(p) != "" {
ref["local_path"] = strings.TrimSpace(p)
}
if d, ok := existingRef["daemon_id"].(string); ok && strings.TrimSpace(d) != "" {
ref["daemon_id"] = strings.TrimSpace(d)
}View on GitHub (pinned to 2c0912b6ec)