Skip to content

Commit

Permalink
activation: stub out for plan9
Browse files Browse the repository at this point in the history
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/[email protected]/activation/files_unix.go:60:11: undefined: syscall.CloseOnExec
```
  • Loading branch information
flokli committed May 3, 2024
1 parent 7d375ec commit 553c525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions activation/files_windows.go → activation/files_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build windows || plan9
// +build windows plan9

package activation

import "os"
Expand Down
4 changes: 2 additions & 2 deletions activation/files_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !windows
// +build !windows
//go:build !windows && !plan9
// +build !windows,!plan9

// Package activation implements primitives for systemd socket activation.
package activation
Expand Down

0 comments on commit 553c525

Please sign in to comment.