Skip to content

Commit 1bd86a8

Browse files
committed
Build constraints: switch to new syntax
Make gofmt happy about that.
1 parent 219fb12 commit 1bd86a8

10 files changed

Lines changed: 9 additions & 10 deletions

File tree

internal/action/actions_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build plan9 nacl windows
1+
//go:build plan9 || nacl || windows
22

33
package action
44

internal/action/actions_posix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux darwin dragonfly solaris openbsd netbsd freebsd
1+
//go:build linux || darwin || dragonfly || solaris || openbsd || netbsd || freebsd
22

33
package action
44

internal/action/terminal_supported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux darwin dragonfly openbsd_amd64 freebsd
1+
//go:build linux || darwin || dragonfly || openbsd_amd64 || freebsd
22

33
package action
44

internal/action/terminal_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !linux,!darwin,!freebsd,!dragonfly,!openbsd_amd64
1+
//go:build !linux && !darwin && !freebsd && !dragonfly && !openbsd_amd64
22

33
package action
44

runtime/syntax/syntax_converter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build ignore
1+
//go:build ignore
22

33
package main
44

tools/build-date.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build ignore
1+
//go:build ignore
22

33
package main
44

tools/build-version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build ignore
1+
//go:build ignore
22

33
package main
44

tools/info-plist.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build ignore
2-
// +build ignore
32

43
package main
54

tools/remove-nightly-assets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build ignore
1+
//go:build ignore
22

33
package main
44

tools/testgen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build ignore
1+
//go:build ignore
22

33
package main
44

0 commit comments

Comments
 (0)