Skip to content

Commit

Permalink
unix: drop go version tags for unsupported versions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tklauser authored and gopherbot committed Feb 14, 2024
1 parent 6b4eab5 commit 7ff74af
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion unix/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos

package unix

Expand Down
2 changes: 1 addition & 1 deletion unix/darwin_amd64_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion unix/darwin_arm64_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion unix/darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build darwin && go1.12
//go:build darwin

package unix

Expand Down
2 changes: 0 additions & 2 deletions unix/dev_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.7

package unix_test

import (
Expand Down
2 changes: 1 addition & 1 deletion unix/mkasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func generateASMFile(goos, arch string, inFileNames []string, outFileName string
const darwinTestTemplate = `// go run mkasm.go %s
// Code generated by the command above; DO NOT EDIT.
//go:build darwin && go1.12
//go:build darwin
package unix
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_darwin_libSystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build darwin && go1.12
//go:build darwin

package unix

Expand Down

0 comments on commit 7ff74af

Please sign in to comment.