Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/website/copy_jsonschema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ func copySchemas() error {
return fmt.Errorf("copy FS: %w", err)
}

err = copyLatestSchema()
err = copyLatestSchema(dstDir)
if err != nil {
return fmt.Errorf("copy files: %w", err)
}

return nil
}

func copyLatestSchema() error {
func copyLatestSchema(dstDir string) error {
src := filepath.FromSlash("jsonschema/golangci.jsonschema.json")

latest, err := github.GetLatestVersion()
Expand Down Expand Up @@ -71,7 +71,7 @@ func copyLatestSchema() error {
}

for _, dst := range files {
err = copyFile(dst, source, info)
err = copyFile(filepath.Join(dstDir, dst), source, info)
if err != nil {
return fmt.Errorf("copy file %s to %s: %w", src, dst, err)
}
Expand Down
Loading