aboutsummaryrefslogtreecommitdiff
path: root/src/os/path_windows_test.go
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-10-19 18:06:27 +0200
committerQuim Muntal <quimmuntal@gmail.com>2024-02-07 20:54:38 +0000
commitc0984005487b293b4bb2f92e8cd9b58422f7831e (patch)
tree4a7ca58fc67fda1bf8b00ae85c72949e031fa22f /src/os/path_windows_test.go
parent28b8851671a0254ed0e46ce8dbec43ebe73e7132 (diff)
downloadgo-c0984005487b293b4bb2f92e8cd9b58422f7831e.tar.xz
runtime,internal/syscall/windows: remove long path support check
The runtime currently enables long path support process-wide by updating the process environment block (PEB). It then tries to create a file using a long path to check if the PEB update made any difference. There hasn't been any report that the PEB update was not effective, and the check itself is quite tricky, so it's time to remove it. While here, linkname `runtime.canUseLongPaths` to a variable in internal/syscall/windows instead of the os package so it is easier to consume from other packages. Change-Id: I549380b7f2c242dc4db20d5be603840282de69b9 Reviewed-on: https://go-review.googlesource.com/c/go/+/536495 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/os/path_windows_test.go')
-rw-r--r--src/os/path_windows_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/path_windows_test.go b/src/os/path_windows_test.go
index 4e5e501d1f..6fa864a98d 100644
--- a/src/os/path_windows_test.go
+++ b/src/os/path_windows_test.go
@@ -16,7 +16,7 @@ import (
)
func TestFixLongPath(t *testing.T) {
- if os.CanUseLongPaths {
+ if windows.CanUseLongPaths {
return
}
t.Parallel()