Skip to content

Commit 7ff74af

Browse files
tklausergopherbot
authored andcommitted
unix: drop go version tags for unsupported versions
go.mod specifies go 1.18. Drop go1.n version tags for older, unsupported versions. Change-Id: I8563bd2cc8e86bd560a45b885a9aa2e6bcc95c47 Reviewed-on: https://go-review.googlesource.com/c/sys/+/559415 Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
1 parent 6b4eab5 commit 7ff74af

7 files changed

+6
-8
lines changed

unix/aliases.go

+1-1
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 (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9
5+
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
66

77
package unix
88

unix/darwin_amd64_test.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/darwin_arm64_test.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/darwin_test.go

+1-1
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 darwin && go1.12
5+
//go:build darwin
66

77
package unix
88

unix/dev_linux_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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 go1.7
6-
75
package unix_test
86

97
import (

unix/mkasm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func generateASMFile(goos, arch string, inFileNames []string, outFileName string
8080
const darwinTestTemplate = `// go run mkasm.go %s
8181
// Code generated by the command above; DO NOT EDIT.
8282
83-
//go:build darwin && go1.12
83+
//go:build darwin
8484
8585
package unix
8686

unix/syscall_darwin_libSystem.go

+1-1
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 darwin && go1.12
5+
//go:build darwin
66

77
package unix
88

0 commit comments

Comments
 (0)