Fix build tags for pkg/machine...

Podman machine is only intended for amd64 and arm64 architectures, set
the correct buildtags so that the `pkg/machine`, `pkg/machine/qemu` and
`pkg/machine/libvirt` packages compile correctly.

[NO TESTS NEEDED]

Fixes #10625

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2021-06-10 10:00:21 +02:00
parent ea39735845
commit c3a14103fb
14 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
/*

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package libvirt
type MachineVM struct {

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package libvirt
import "github.com/containers/podman/v3/pkg/machine"

View File

@ -0,0 +1,3 @@
// +build !amd64 amd64,windows
package libvirt

View File

@ -0,0 +1,3 @@
// +build !amd64 amd64,windows
package machine

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package machine
import (

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package qemu
import "time"

View File

@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
package qemu
import (

View File

@ -0,0 +1,3 @@
// +build !amd64 amd64,windows
package qemu