Skip to content

Commit 5080ed3

Browse files
committed
add newer build constraint format
Go 1.17 introduced the new build constraint format[1] and `gofmt` now complains if the new constraint format isn't present when the old format is found. [1] https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
1 parent 75f33b0 commit 5080ed3

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

activation/files_unix.go

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

15+
//go:build !windows
1516
// +build !windows
1617

1718
// Package activation implements primitives for systemd socket activation.

examples/activation/activation.go

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

15+
//go:build ignore
1516
// +build ignore
1617

1718
// Activation example used by the activation unit tests.

examples/activation/httpserver/httpserver.go

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

15+
//go:build ignore
1516
// +build ignore
1617

1718
package main

examples/activation/listen.go

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

15+
//go:build ignore
1516
// +build ignore
1617

1718
// Activation example used by the activation unit tests.

examples/activation/udpconn.go

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

15+
//go:build ignore
1516
// +build ignore
1617

1718
// Activation example used by the activation unit tests.

util/util_cgo.go

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

15+
//go:build cgo
1516
// +build cgo
1617

1718
package util

util/util_stub.go

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

15+
//go:build !cgo
1516
// +build !cgo
1617

1718
package util

0 commit comments

Comments
 (0)