From ed0880cf0756f7ca58d49042f1ce5ed3a470ffe5 Mon Sep 17 00:00:00 2001 From: Tyler Davis Date: Fri, 7 Jan 2022 16:02:00 +0000 Subject: [PATCH] chore: update builds directives to new format Update "// +build" directives to match new "//go:build" format in Go 1.17. https://go.dev/doc/go1.17#go-command --- cmd/root_nowindows_test.go | 1 + cmd/root_windows_test.go | 1 + cmd/util_bsd.go | 1 + 3 files changed, 3 insertions(+) diff --git a/cmd/root_nowindows_test.go b/cmd/root_nowindows_test.go index 2fb630df7..d9aaf3941 100644 --- a/cmd/root_nowindows_test.go +++ b/cmd/root_nowindows_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package cmd diff --git a/cmd/root_windows_test.go b/cmd/root_windows_test.go index 272e52846..29b99c0c1 100644 --- a/cmd/root_windows_test.go +++ b/cmd/root_windows_test.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package cmd diff --git a/cmd/util_bsd.go b/cmd/util_bsd.go index 784167f82..c958b529e 100644 --- a/cmd/util_bsd.go +++ b/cmd/util_bsd.go @@ -1,5 +1,6 @@ // This file contains Darwin (MacOS) and *BSD specific calls. +//go:build freebsd || openbsd || dragonfly || darwin // +build freebsd openbsd dragonfly darwin package cmd