Skip to content

Commit

Permalink
Spell "build linux darwin" as "build !windows".
Browse files Browse the repository at this point in the history
Equivalent for supported platforms, and makes it easier to support
additional unix-like OSes.
  • Loading branch information
coypoop committed Sep 3, 2021
1 parent 4699004 commit 6605997
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/machine/init.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/list.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/machine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/rm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/ssh.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/start.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/stop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/connection.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/fcos.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/ignition.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/ignition_schema.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/keys.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/pull.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package machine

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/qemu/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package qemu

Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,linux arm64,linux amd64,darwin arm64,darwin
// +build amd64,!windows arm64,!windows

package qemu

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

package util

Expand Down

0 comments on commit 6605997

Please sign in to comment.