Skip to content

Commit

Permalink
Fix build tags for pkg/machine...
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Luap99 committed Jun 10, 2021
1 parent ea39735 commit c3a1410
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/machine/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/connection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/fcos.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/ignition.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/ignition_schema.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

/*
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/keys.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/libvirt/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package libvirt

type MachineVM struct {
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/libvirt/machine.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package libvirt

import "github.com/containers/podman/v3/pkg/machine"
Expand Down
3 changes: 3 additions & 0 deletions pkg/machine/libvirt/machine_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !amd64 amd64,windows

package libvirt
3 changes: 3 additions & 0 deletions pkg/machine/machine_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !amd64 amd64,windows

package machine
2 changes: 2 additions & 0 deletions pkg/machine/pull.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package machine

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/qemu/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package qemu

import "time"
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin

package qemu

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/machine/qemu/machine_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !amd64 amd64,windows

package qemu

0 comments on commit c3a1410

Please sign in to comment.