| 1 | //go:build !unix |
| 2 | |
| 3 | package testscript |
| 4 | |
| 5 | import "fmt" |
| 6 | |
| 7 | // cloneFile does not attempt anything on Windows, as hard links on it have |
| 8 | // led to "access denied" errors when deleting files at the end of a test. |
| 9 | // We haven't tested platforms like plan9 or wasm/wasi. |
| 10 | func cloneFile(from, to string) error { |
| 11 | return fmt.Errorf("unavailable") |
| 12 | } |