Skip to content

Commit 553c525

Browse files
committed
activation: stub out for plan9
plan9 doesn't have syscall.CloseOnExec, causing anything using `activation` to fail when building on plan9: ``` 2024/05/03 12:12:51 Failed to run [go build --ldflags -s -X github.com/rclone/rclone/fs.Version=v1.67.0-beta.7911.f8ce568ca.merge -trimpath -o rclone-v1.67.0-beta.7911.f8ce568ca.merge-plan9-386/rclone -tags ..]: exit status 1 2024/05/03 12:12:51 Command output was: Error: ../../../../go/pkg/mod/github.com/coreos/go-systemd/v22@v22.5.0/activation/files_unix.go:60:11: undefined: syscall.CloseOnExec ```
1 parent 7d375ec commit 553c525

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

activation/files_windows.go renamed to activation/files_stub.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//go:build windows || plan9
16+
// +build windows plan9
17+
1518
package activation
1619

1720
import "os"

activation/files_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build !windows
16-
// +build !windows
15+
//go:build !windows && !plan9
16+
// +build !windows,!plan9
1717

1818
// Package activation implements primitives for systemd socket activation.
1919
package activation

0 commit comments

Comments
 (0)