build: use golang CopyFS

- speed up prebuild sync tasks.
This commit is contained in:
Alexandre Pujol 2025-04-05 00:28:04 +02:00
parent 4d3025e249
commit 2c3380f9ba
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 7 additions and 9 deletions

View file

@ -41,7 +41,7 @@ func (p Synchronise) Apply() ([]string, error) {
}
if src.IsDir() {
if err := paths.CopyTo(src, dst); err != nil {
if err := src.CopyFS(dst); err != nil {
return res, err
}
} else {