Skip to content

Commit

Permalink
*: fix build tags
Browse files Browse the repository at this point in the history
This change is generated by `go1.23rc2 fix ./...`.

Had to use go1.23rc2, since all released go versions have a bug
preventing it from working with `go 1.22.0` in go.mod (opened
golang/go#68825,
golang/go#68824 for awareness).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Aug 10, 2024
1 parent 94aa41b commit 24da188
Show file tree
Hide file tree
Showing 57 changed files with 11 additions and 58 deletions.
1 change: 0 additions & 1 deletion add_common.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux

package buildah

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

package bind

Expand Down
2 changes: 1 addition & 1 deletion bind/mount_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

package bind

Expand Down
1 change: 0 additions & 1 deletion chroot/pty_posix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build freebsd && cgo
// +build freebsd,cgo

package chroot

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

package chroot

Expand Down
2 changes: 0 additions & 2 deletions chroot/pty_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:build !linux && !(freebsd && cgo)
// +build !linux
// +build !freebsd !cgo

package chroot

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

package chroot

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

package chroot

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

package chroot

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

package chroot

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

package chroot

Expand Down
1 change: 0 additions & 1 deletion chroot/seccomp_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build freebsd && seccomp
// +build freebsd,seccomp

package chroot

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

package chroot

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

package chroot

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

package chroot

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

package chroot

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

package main

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

package main

Expand Down
2 changes: 1 addition & 1 deletion copier/copier_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package copier

Expand Down
1 change: 0 additions & 1 deletion copier/hardlink_not_uint64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || (linux && mips) || (linux && mipsle) || (linux && mips64) || (linux && mips64le)
// +build darwin linux,mips linux,mipsle linux,mips64 linux,mips64le

package copier

Expand Down
1 change: 0 additions & 1 deletion copier/hardlink_uint64.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build (linux && !mips && !mipsle && !mips64 && !mips64le) || freebsd || netbsd
// +build linux,!mips,!mipsle,!mips64,!mips64le freebsd netbsd

package copier

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

package copier

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

package copier

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

package copier

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

package copier

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

package copier

Expand Down
2 changes: 1 addition & 1 deletion copier/syscall_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package copier

Expand Down
1 change: 0 additions & 1 deletion copier/xattrs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || netbsd || freebsd || darwin
// +build linux netbsd freebsd darwin

package copier

Expand Down
2 changes: 1 addition & 1 deletion copier/xattrs_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux,!netbsd,!freebsd,!darwin
//go:build !linux && !netbsd && !freebsd && !darwin

package copier

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

package define

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

package define

Expand Down
1 change: 0 additions & 1 deletion define/mount_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || windows || netbsd
// +build darwin windows netbsd

package define

Expand Down
2 changes: 1 addition & 1 deletion define/types_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build darwin linux
//go:build darwin || linux

package define

Expand Down
2 changes: 1 addition & 1 deletion define/types_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux,!darwin
//go:build !linux && !darwin

package define

Expand Down
1 change: 0 additions & 1 deletion pkg/chrootuser/user_basic.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux && !freebsd
// +build !linux,!freebsd

package chrootuser

Expand Down
1 change: 0 additions & 1 deletion pkg/chrootuser/user_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd

package chrootuser

Expand Down
1 change: 0 additions & 1 deletion pkg/overlay/overlay_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !freebsd && !linux
// +build !freebsd,!linux

package overlay

Expand Down
1 change: 0 additions & 1 deletion pkg/parse/parse_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || darwin
// +build linux darwin

package parse

Expand Down
1 change: 0 additions & 1 deletion pkg/parse/parse_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !linux && !darwin
// +build !linux,!darwin

package parse

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

package rusage

Expand Down
1 change: 0 additions & 1 deletion pkg/rusage/rusage_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build windows
// +build windows

package rusage

Expand Down
1 change: 0 additions & 1 deletion pkg/util/resource_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || freebsd || darwin
// +build linux freebsd darwin

package util

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

package util

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

package buildah

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

package buildah

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

package buildah

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

package buildah

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

package buildah

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

package buildah

Expand Down
2 changes: 1 addition & 1 deletion seccomp_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !seccomp !linux
//go:build !seccomp || !linux

package buildah

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

package buildah

Expand Down
2 changes: 1 addition & 1 deletion selinux_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

package buildah

Expand Down
2 changes: 1 addition & 1 deletion tests/conformance/selinux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
//go:build linux

package conformance

Expand Down
2 changes: 1 addition & 1 deletion tests/conformance/selinux_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

package conformance

Expand Down
1 change: 0 additions & 1 deletion util/util_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || darwin || freebsd || netbsd
// +build linux darwin freebsd netbsd

package util

Expand Down
2 changes: 1 addition & 1 deletion util/util_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !linux
//go:build !linux

package util

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

package util

Expand Down

0 comments on commit 24da188

Please sign in to comment.