all: update build constraints to Go 1.17

Do it all at once in preparation for Go 1.18 support.

To make this commit, I've simply modified the `fmt-check` Makefile
target to rewrite files instead of listing the differences. So this is a
fully mechanical change, it should not have introduced any errors.
This commit is contained in:
Ayke van Laethem
2022-02-03 19:21:17 +01:00
committed by Ron Evans
parent aa8e0bb509
commit 77ec9b6369
281 changed files with 284 additions and 4 deletions
+1
View File
@@ -1,3 +1,4 @@
//go:build go1.16
// +build go1.16
// Copyright 2016 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build (go1.16 && baremetal) || (go1.16 && js) || (go1.16 && wasi) || (go1.16 && windows)
// +build go1.16,baremetal go1.16,js go1.16,wasi go1.16,windows
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build !go1.16
// +build !go1.16
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build darwin || (linux && !baremetal && !js && !wasi && !386 && !arm)
// +build darwin linux,!baremetal,!js,!wasi,!386,!arm
package os_test
+1
View File
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux && !baremetal && !wasi
// +build linux,!baremetal,!wasi
package os
+1
View File
@@ -1,3 +1,4 @@
//go:build !baremetal && !js && !wasi
// +build !baremetal,!js,!wasi
// Copyright 2020 The Go Authors. All rights reserved.
+2 -1
View File
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//+build darwin linux
//go:build darwin || linux
// +build darwin linux
package os_test
+1
View File
@@ -1,3 +1,4 @@
//go:build !linux || baremetal
// +build !linux baremetal
package os
+1
View File
@@ -4,6 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux && !baremetal
// +build linux,!baremetal
package os
+1
View File
@@ -1,3 +1,4 @@
//go:build !baremetal && !js
// +build !baremetal,!js
package os_test
+1
View File
@@ -1,3 +1,4 @@
//go:build go1.16
// +build go1.16
package os
+1
View File
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.16 && !baremetal && !js && !wasi
// +build go1.16,!baremetal,!js,!wasi
// DirFS tests copied verbatim from upstream os_test.go, and adjusted minimally to fit tinygo.
+1
View File
@@ -1,3 +1,4 @@
//go:build baremetal || (wasm && !wasi)
// +build baremetal wasm,!wasi
package os
+1
View File
@@ -1,3 +1,4 @@
//go:build darwin || (linux && !baremetal)
// +build darwin linux,!baremetal
// Portions copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build windows || darwin || (linux && !baremetal)
// +build windows darwin linux,!baremetal
package os_test
+1
View File
@@ -1,3 +1,4 @@
//go:build !baremetal && !js && !wasi
// +build !baremetal,!js,!wasi
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build !windows && !baremetal && !js && !wasi
// +build !windows,!baremetal,!js,!wasi
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build !baremetal && !js
// +build !baremetal,!js
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build (linux && !baremetal && 386) || (linux && !baremetal && arm && !wasi)
// +build linux,!baremetal,386 linux,!baremetal,arm,!wasi
package os
+1
View File
@@ -1,3 +1,4 @@
//go:build linux && !baremetal
// +build linux,!baremetal
// Copyright 2009 The Go Authors. All rights reserved.
+2 -1
View File
@@ -1,4 +1,5 @@
// +build baremetal wasm,!wasi
//go:build baremetal || (wasm && !wasi)
// +build baremetal wasm,!wasi
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
+1
View File
@@ -1,3 +1,4 @@
//go:build darwin || (linux && !baremetal)
// +build darwin linux,!baremetal
// Copyright 2016 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build !baremetal && !js
// +build !baremetal,!js
// Copyright 2009 The Go Authors. All rights reserved.
+1
View File
@@ -1,3 +1,4 @@
//go:build darwin || (linux && !baremetal)
// +build darwin linux,!baremetal
// Copyright 2009 The Go Authors. All rights reserved.