Stream changed local audio into the workspace
This commit is contained in:
@@ -652,14 +652,7 @@ func copyFileIfChanged(store artifacts.Store, src, dst string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
data, err := os.ReadFile(src)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if err := store.WriteFileAtomic(dst, data, fileops.WorkspaceFileMode); err != nil {
|
||||
return "", err
|
||||
}
|
||||
return srcChecksum, nil
|
||||
return fileops.CopyFileAtomicWithChecksum(src, dst, fileops.WorkspaceFileMode)
|
||||
}
|
||||
|
||||
func writeBytesIfChanged(store artifacts.Store, dst string, data []byte) (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user