serve ftp: disable on plan9 since it doesn't compile

This commit is contained in:
Nick Craig-Wood 2018-09-13 18:21:20 +01:00
parent 4a3efa5d45
commit d4ee7277c0
4 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,7 @@
// Package ftp implements an FTP server for rclone
//+build !plan9
package ftp
import (

View file

@ -3,7 +3,7 @@
//
// We skip tests on platforms with troublesome character mappings
//+build !windows,!darwin
//+build !windows,!darwin,!plan9
package ftp

View 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

View file

@ -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)
}