From baf91f659da6bb43ef2f29d2657232a6aaee9316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusufhan=20Sa=C3=A7ak?= Date: Fri, 10 Apr 2026 14:35:22 +0300 Subject: [PATCH] fix(publisher): omit repository when URL cannot be detected Return an empty string from detectRepoURL() when no repository can be determined, instead of a placeholder URL. This causes createServerJSON() to omit the repository field entirely, avoiding schema validation failures from empty or placeholder URI values on publish. Fixes #613 --- cmd/publisher/commands/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/publisher/commands/init.go b/cmd/publisher/commands/init.go index 27cb664ac..8d0b505fc 100644 --- a/cmd/publisher/commands/init.go +++ b/cmd/publisher/commands/init.go @@ -246,7 +246,7 @@ func detectRepoURL() string { } } - return "https://github.com/YOUR_USERNAME/YOUR_REPO" + return "" } func detectPackageType() string {