Skip to content

Commit 61f1d85

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 446c54a commit 61f1d85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

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

15+
//go:build !unix
16+
1517
package activation
1618

1719
import "os"

activation/files_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build !windows
15+
//go:build unix
1616

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

0 commit comments

Comments
 (0)