File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
scripts/website/copy_jsonschema Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments