serve ftp: disable on plan9 since it doesn't compile
This commit is contained in:
parent
4a3efa5d45
commit
d4ee7277c0
4 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
// Package ftp implements an FTP server for rclone
|
||||
|
||||
//+build !plan9
|
||||
|
||||
package ftp
|
||||
|
||||
import (
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//+build !windows,!darwin
|
||||
//+build !windows,!darwin,!plan9
|
||||
|
||||
package ftp
|
||||
|
||||
|
|
11
cmd/serve/ftp/ftp_unsupported.go
Normal file
11
cmd/serve/ftp/ftp_unsupported.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Build for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files "
|
||||
|
||||
// +build plan9
|
||||
|
||||
package ftp
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
// Command definition is nil to show not implemented
|
||||
var Command *cobra.Command = nil
|
|
@ -15,7 +15,9 @@ func init() {
|
|||
Command.AddCommand(http.Command)
|
||||
Command.AddCommand(webdav.Command)
|
||||
Command.AddCommand(restic.Command)
|
||||
Command.AddCommand(ftp.Command)
|
||||
if ftp.Command != nil {
|
||||
Command.AddCommand(ftp.Command)
|
||||
}
|
||||
cmd.Root.AddCommand(Command)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue