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 {
32
32
return fmt .Errorf ("copy FS: %w" , err )
33
33
}
34
34
35
- err = copyLatestSchema ()
35
+ err = copyLatestSchema (dstDir )
36
36
if err != nil {
37
37
return fmt .Errorf ("copy files: %w" , err )
38
38
}
39
39
40
40
return nil
41
41
}
42
42
43
- func copyLatestSchema () error {
43
+ func copyLatestSchema (dstDir string ) error {
44
44
src := filepath .FromSlash ("jsonschema/golangci.jsonschema.json" )
45
45
46
46
latest , err := github .GetLatestVersion ()
@@ -71,7 +71,7 @@ func copyLatestSchema() error {
71
71
}
72
72
73
73
for _ , dst := range files {
74
- err = copyFile (dst , source , info )
74
+ err = copyFile (filepath . Join ( dstDir , dst ) , source , info )
75
75
if err != nil {
76
76
return fmt .Errorf ("copy file %s to %s: %w" , src , dst , err )
77
77
}
You can’t perform that action at this time.
0 commit comments