aboutsummaryrefslogtreecommitdiff
path: root/internal/robustio/gopls_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/robustio/gopls_windows.go')
-rw-r--r--internal/robustio/gopls_windows.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/robustio/gopls_windows.go b/internal/robustio/gopls_windows.go
new file mode 100644
index 000000000..949f27816
--- /dev/null
+++ b/internal/robustio/gopls_windows.go
@@ -0,0 +1,16 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package robustio
+
+import "syscall"
+
+// The robustio package is copied from cmd/go/internal/robustio, a package used
+// by the go command to retry known flaky operations on certain operating systems.
+
+//go:generate go run copyfiles.go
+
+// Since the gopls module cannot access internal/syscall/windows, copy a
+// necessary constant.
+const ERROR_SHARING_VIOLATION syscall.Errno = 32