mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Drop redundant GOOS build tags if already in filename
Drop redundant GOOS build tags at start of file if the constraint is already specified by the filename, e.g. foo_GOOS.go or foo_GOOS_GOARCH.go, avoiding potential confusion in future. cf. https://pkg.go.dev/cmd/go#hdr-Build_constraints Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This commit is contained in:
parent
c6c28d915c
commit
3fb5f70b0c
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build solaris && !noboottime
|
||||
// +build solaris,!noboottime
|
||||
//go:build !noboottime
|
||||
// +build !noboottime
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build solaris && !nocpu
|
||||
// +build solaris,!nocpu
|
||||
//go:build !nocpu
|
||||
// +build !nocpu
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build solaris && !nocpu
|
||||
// +build solaris,!nocpu
|
||||
//go:build !nocpu
|
||||
// +build !nocpu
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build openbsd && !amd64 && !nodiskstats
|
||||
// +build openbsd,!amd64,!nodiskstats
|
||||
//go:build !nodiskstats && !amd64
|
||||
// +build !nodiskstats,!amd64
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !nofibrechannel
|
||||
// +build linux,!nofibrechannel
|
||||
//go:build !nofibrechannel
|
||||
// +build !nofibrechannel
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build openbsd && !nofilesystem
|
||||
// +build openbsd,!nofilesystem
|
||||
//go:build !nofilesystem
|
||||
// +build !nofilesystem
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !noinfiniband
|
||||
// +build linux,!noinfiniband
|
||||
//go:build !noinfiniband
|
||||
// +build !noinfiniband
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build openbsd && !amd64 && !nointerrupts
|
||||
// +build openbsd,!amd64,!nointerrupts
|
||||
//go:build !nointerrupts && !amd64
|
||||
// +build !nointerrupts,!amd64
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build netbsd && !nomeminfo
|
||||
// +build netbsd,!nomeminfo
|
||||
//go:build !nomeminfo
|
||||
// +build !nomeminfo
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build openbsd && !amd64 && !nomeminfo
|
||||
// +build openbsd,!amd64,!nomeminfo
|
||||
//go:build !nomeminfo && !amd64
|
||||
// +build !nomeminfo,!amd64
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build openbsd && !amd64 && !nonetdev
|
||||
// +build openbsd,!amd64,!nonetdev
|
||||
//go:build !nonetdev && !amd64
|
||||
// +build !nonetdev,!amd64
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build freebsd && !nonetisr
|
||||
// +build freebsd,!nonetisr
|
||||
//go:build !nonetisr
|
||||
// +build !nonetisr
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !nonvme
|
||||
// +build linux,!nonvme
|
||||
//go:build !nonvme
|
||||
// +build !nonvme
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !noselinux
|
||||
// +build linux,!noselinux
|
||||
//go:build !noselinux
|
||||
// +build !noselinux
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !noslabinfo
|
||||
// +build linux,!noslabinfo
|
||||
//go:build !noslabinfo
|
||||
// +build !noslabinfo
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build linux && !notime
|
||||
// +build linux,!notime
|
||||
//go:build !notime
|
||||
// +build !notime
|
||||
|
||||
package collector
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build solaris && !nozfs
|
||||
// +build solaris,!nozfs
|
||||
//go:build !nozfs
|
||||
// +build !nozfs
|
||||
|
||||
package collector
|
||||
|
||||
|
|
Loading…
Reference in a new issue