diff --git a/cmd/readmevalidation/coderResources.go b/cmd/readmevalidation/coderResources.go index d4661c59..57b44079 100644 --- a/cmd/readmevalidation/coderResources.go +++ b/cmd/readmevalidation/coderResources.go @@ -87,9 +87,9 @@ func validateCoderResourceIconURL(iconURL string) []error { // repo, and where this logic will run isPermittedRelativeURL := strings.HasPrefix(iconURL, "./") || strings.HasPrefix(iconURL, "/") || - strings.HasPrefix(iconURL, "../../../.logos") + strings.HasPrefix(iconURL, "../../../.icons") if !isPermittedRelativeURL { - problems = append(problems, errors.New("relative icon URL must either be scoped to that module's directory, or the top-level /.logos directory")) + problems = append(problems, fmt.Errorf("relative icon URL %q must either be scoped to that module's directory, or the top-level /.icons directory (this can usually be done by starting the path with \"../../../.icons\")", iconURL)) } return problems diff --git a/cmd/readmevalidation/main.go b/cmd/readmevalidation/main.go index 56ee3824..5abef391 100644 --- a/cmd/readmevalidation/main.go +++ b/cmd/readmevalidation/main.go @@ -172,9 +172,9 @@ func main() { } fmt.Println("---") - fmt.Println("Encountered the following problems") + log.Println("Encountered the following problems") for _, err := range readmeValidationErrors { - log.Println(err) + fmt.Println(err) } os.Exit(1) } diff --git a/cmd/readmevalidation/repoStructure.go b/cmd/readmevalidation/repoStructure.go index fe1d9051..951abde5 100644 --- a/cmd/readmevalidation/repoStructure.go +++ b/cmd/readmevalidation/repoStructure.go @@ -97,7 +97,7 @@ func validateRepoStructure() error { problems = append(problems, errs...) } - _, err := os.Stat("./.logos") + _, err := os.Stat("./.icons") if err != nil { problems = append(problems, err) } diff --git a/registry/coder/modules/claude-code/README.md b/registry/coder/modules/claude-code/README.md index 2cb506bf..01cb5a6a 100644 --- a/registry/coder/modules/claude-code/README.md +++ b/registry/coder/modules/claude-code/README.md @@ -1,7 +1,8 @@ --- display_name: Claude Code description: Run Claude Code in your workspace -icon: ../.icons/claude.svg +icon: ../../../.icons/claude.svg +maintainer_github: coder verified: true tags: [agent, claude-code] --- diff --git a/registry/coder/modules/cursor/README.md b/registry/coder/modules/cursor/README.md index 691526cb..b6d98159 100644 --- a/registry/coder/modules/cursor/README.md +++ b/registry/coder/modules/cursor/README.md @@ -1,7 +1,7 @@ --- display_name: Cursor IDE description: Add a one-click button to launch Cursor IDE -icon: ../.icons/cursor.svg +icon: ../../../.icons/cursor.svg verified: true tags: [ide, cursor, helper] ---