Skip to content

Commit c4c1006

Browse files
authored
dev: fix JSONSchema publication (#5394)
1 parent a8e7ec4 commit c4c1006

File tree

1 file changed

+3
-3
lines changed
  • scripts/website/copy_jsonschema

1 file changed

+3
-3
lines changed

scripts/website/copy_jsonschema/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ func copySchemas() error {
3232
return fmt.Errorf("copy FS: %w", err)
3333
}
3434

35-
err = copyLatestSchema()
35+
err = copyLatestSchema(dstDir)
3636
if err != nil {
3737
return fmt.Errorf("copy files: %w", err)
3838
}
3939

4040
return nil
4141
}
4242

43-
func copyLatestSchema() error {
43+
func copyLatestSchema(dstDir string) error {
4444
src := filepath.FromSlash("jsonschema/golangci.jsonschema.json")
4545

4646
latest, err := github.GetLatestVersion()
@@ -71,7 +71,7 @@ func copyLatestSchema() error {
7171
}
7272

7373
for _, dst := range files {
74-
err = copyFile(dst, source, info)
74+
err = copyFile(filepath.Join(dstDir, dst), source, info)
7575
if err != nil {
7676
return fmt.Errorf("copy file %s to %s: %w", src, dst, err)
7777
}

0 commit comments

Comments
 (0)