| 1 | // Copyright 2022 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package robustio |
| 6 | |
| 7 | import "syscall" |
| 8 | |
| 9 | // The robustio package is copied from cmd/go/internal/robustio, a package used |
| 10 | // by the go command to retry known flaky operations on certain operating systems. |
| 11 | |
| 12 | //go:generate go run copyfiles.go |
| 13 | |
| 14 | // Since the gopls module cannot access internal/syscall/windows, copy a |
| 15 | // necessary constant. |
| 16 | const ERROR_SHARING_VIOLATION syscall.Errno = 32 |