Use unix build constraint.
Now that we floor on Go 1.19, take advantage of the unix build constraint: https://tip.golang.org/doc/go1.19#go-unix Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//go:build unix || linux || darwin
|
||||
//go:build unix
|
||||
|
||||
package wasi_snapshot_preview1_test
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build unix || darwin || linux
|
||||
//go:build unix
|
||||
|
||||
package sysfs
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !unix && !linux && !darwin && !windows
|
||||
//go:build !unix && !windows
|
||||
|
||||
package sysfs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user