Skip to content

Commit

Permalink
Remove old style (go < 1.18) build tags
Browse files Browse the repository at this point in the history
Brought to you by

	go1.19 fix ./...

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Aug 4, 2022
1 parent d769cf3 commit 8e8aefe
Show file tree
Hide file tree
Showing 28 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion contrib/cmd/seccompagent/seccompagent.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux && seccomp
// +build linux,seccomp

package main

Expand Down
1 change: 0 additions & 1 deletion contrib/cmd/seccompagent/unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux || !seccomp
// +build !linux !seccomp

package main

Expand Down
1 change: 0 additions & 1 deletion libcontainer/apparmor/apparmor_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package apparmor

Expand Down
1 change: 0 additions & 1 deletion libcontainer/capabilities/capabilities.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package capabilities

Expand Down
1 change: 0 additions & 1 deletion libcontainer/capabilities/capabilities_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:build !linux
// +build !linux

package capabilities
1 change: 0 additions & 1 deletion libcontainer/configs/cgroup_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package configs

Expand Down
1 change: 0 additions & 1 deletion libcontainer/configs/configs_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build gofuzz
// +build gofuzz

package configs

Expand Down
1 change: 0 additions & 1 deletion libcontainer/configs/namespaces_syscall.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package configs

Expand Down
1 change: 0 additions & 1 deletion libcontainer/configs/namespaces_syscall_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux && !windows
// +build !linux,!windows

package configs

Expand Down
1 change: 0 additions & 1 deletion libcontainer/configs/namespaces_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package configs

Expand Down
1 change: 0 additions & 1 deletion libcontainer/devices/device_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package devices

Expand Down
1 change: 0 additions & 1 deletion libcontainer/devices/device_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package devices

Expand Down
1 change: 0 additions & 1 deletion libcontainer/integration/seccomp_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux && cgo && seccomp
// +build linux,cgo,seccomp

package integration

Expand Down
1 change: 0 additions & 1 deletion libcontainer/nsenter/nsenter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux && !gccgo
// +build linux,!gccgo

package nsenter

Expand Down
1 change: 0 additions & 1 deletion libcontainer/nsenter/nsenter_gccgo.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux && gccgo
// +build linux,gccgo

package nsenter

Expand Down
1 change: 0 additions & 1 deletion libcontainer/seccomp/patchbpf/enosys_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build cgo && seccomp
// +build cgo,seccomp

package patchbpf

Expand Down
1 change: 0 additions & 1 deletion libcontainer/seccomp/patchbpf/enosys_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build cgo && seccomp
// +build cgo,seccomp

package patchbpf

Expand Down
1 change: 0 additions & 1 deletion libcontainer/seccomp/patchbpf/enosys_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:build !linux || !cgo || !seccomp
// +build !linux !cgo !seccomp

package patchbpf
1 change: 0 additions & 1 deletion libcontainer/seccomp/seccomp_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build cgo && seccomp
// +build cgo,seccomp

package seccomp

Expand Down
1 change: 0 additions & 1 deletion libcontainer/seccomp/seccomp_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux || !cgo || !seccomp
// +build !linux !cgo !seccomp

package seccomp

Expand Down
1 change: 0 additions & 1 deletion libcontainer/system/linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

package system

Expand Down
2 changes: 0 additions & 2 deletions libcontainer/system/syscall_linux_32.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:build linux && (386 || arm)
// +build linux
// +build 386 arm

package system

Expand Down
2 changes: 0 additions & 2 deletions libcontainer/system/syscall_linux_64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:build linux && (arm64 || amd64 || mips || mipsle || mips64 || mips64le || ppc || ppc64 || ppc64le || riscv64 || s390x)
// +build linux
// +build arm64 amd64 mips mipsle mips64 mips64le ppc ppc64 ppc64le riscv64 s390x

package system

Expand Down
1 change: 0 additions & 1 deletion libcontainer/user/lookup_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris

package user

Expand Down
1 change: 0 additions & 1 deletion libcontainer/user/user_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build gofuzz
// +build gofuzz

package user

Expand Down
1 change: 0 additions & 1 deletion libcontainer/userns/userns_fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build gofuzz
// +build gofuzz

package userns

Expand Down
1 change: 0 additions & 1 deletion libcontainer/userns/userns_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package userns

Expand Down
1 change: 0 additions & 1 deletion libcontainer/utils/utils_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

package utils

Expand Down

0 comments on commit 8e8aefe

Please sign in to comment.