From 2d7bba0e58db9f8e3182e7da7c09df0ba05d7b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 23 May 2023 09:13:09 +0100 Subject: [PATCH] all: go fix to remove pre-go1.17 build tags --- internal/os/execpath/lp_js.go | 1 - internal/os/execpath/lp_unix.go | 1 - testenv/testenv_cgo.go | 1 - testenv/testenv_notwin.go | 1 - testscript/clonefile.go | 1 - testscript/clonefile_other.go | 1 - testscript/envvarname.go | 1 - 7 files changed, 7 deletions(-) diff --git a/internal/os/execpath/lp_js.go b/internal/os/execpath/lp_js.go index e826c319..a0571b71 100644 --- a/internal/os/execpath/lp_js.go +++ b/internal/os/execpath/lp_js.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build js && wasm -// +build js,wasm package execpath diff --git a/internal/os/execpath/lp_unix.go b/internal/os/execpath/lp_unix.go index cb8e9760..37f18c79 100644 --- a/internal/os/execpath/lp_unix.go +++ b/internal/os/execpath/lp_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris -// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris package execpath diff --git a/testenv/testenv_cgo.go b/testenv/testenv_cgo.go index 02f08f57..7426a29c 100644 --- a/testenv/testenv_cgo.go +++ b/testenv/testenv_cgo.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build cgo -// +build cgo package testenv diff --git a/testenv/testenv_notwin.go b/testenv/testenv_notwin.go index a1ae92c0..1484058f 100644 --- a/testenv/testenv_notwin.go +++ b/testenv/testenv_notwin.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !windows -// +build !windows package testenv diff --git a/testscript/clonefile.go b/testscript/clonefile.go index c841d67d..be49a2c8 100644 --- a/testscript/clonefile.go +++ b/testscript/clonefile.go @@ -1,5 +1,4 @@ //go:build unix && !darwin -// +build unix,!darwin package testscript diff --git a/testscript/clonefile_other.go b/testscript/clonefile_other.go index d66b841b..1748cafe 100644 --- a/testscript/clonefile_other.go +++ b/testscript/clonefile_other.go @@ -1,5 +1,4 @@ //go:build !unix -// +build !unix package testscript diff --git a/testscript/envvarname.go b/testscript/envvarname.go index 15e41f2b..2cc94fce 100644 --- a/testscript/envvarname.go +++ b/testscript/envvarname.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package testscript