Skip to content

Commit fba90c9

Browse files
hnakamurgopherbot
authored andcommitted
cmd/go/internal/script: Fix build tags of isETXTBSY
syscall.ETXTBSY is only meaningful on Unix platforms, not on Windows. Fixes #67356 Change-Id: I1b13292d821d61d820b396e08be9a4dd1683e843 Reviewed-on: https://go-review.googlesource.com/c/go/+/585695 Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent ae5ee70 commit fba90c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/cmd/go/internal/script/cmds_other.go renamed to src/cmd/go/internal/script/cmds_nonunix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !(unix || windows)
5+
//go:build !unix
66

77
package script
88

99
func isETXTBSY(err error) bool {
10+
// syscall.ETXTBSY is only meaningful on Unix platforms.
1011
return false
1112
}

src/cmd/go/internal/script/cmds_posix.go renamed to src/cmd/go/internal/script/cmds_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build unix || windows
5+
//go:build unix
66

77
package script
88

0 commit comments

Comments
 (0)