Skip to content

Commit 23d6e35

Browse files
authored
fix: use go:build comments rather than deprecated +build directive and adjust go vet tooling in Makefile (#41)
1 parent 711e9a1 commit 23d6e35

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test:
3131

3232
.PHONY: lint
3333
lint:
34-
$(GOMODULECMD) tool vet .
34+
$(GOMODULECMD) vet ./...
3535

3636

3737
IPXE_COMMIT_SHA := $(shell cat ipxe/IPXE_COMMIT_SHA)
@@ -53,4 +53,4 @@ ipxe:
5353
mv -f ipxe/ipxe/src/bin/undionly.kpxe ipxe/ipxe/bin/undionly.kpxe
5454
mv -f ipxe/ipxe/src/bin-x86_64-efi/ipxe.efi ipxe/ipxe/bin/ipxe-x86_64.efi
5555
mv -f ipxe/ipxe/src/bin-i386-efi/ipxe.efi ipxe/ipxe/bin/ipxe-i386.efi
56-
(cd ipxe/ipxe/src && make veryclean)
56+
(cd ipxe/ipxe/src && make veryclean)

dhcp4/conn_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414

1515
//go:build linux
16-
// +build linux
1716

1817
package dhcp4
1918

dhcp4/conn_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//+build linux
15+
//go:build linux
1616

1717
package dhcp4
1818

dhcp4/conn_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//+build !linux
15+
//go:build !linux
1616

1717
package dhcp4
1818

0 commit comments

Comments
 (0)