mount: don't build on go1.10 as bazil/fuse no longer supports it

This commit is contained in:
Nick Craig-Wood 2020-01-08 08:02:01 +00:00
parent b6e86b2c7f
commit 706da80d88
9 changed files with 36 additions and 8 deletions

20
backend/cache/cache_mount_other_test.go vendored Normal file
View File

@ -0,0 +1,20 @@
// +build !linux !go1.11
// +build !darwin !go1.11
// +build !freebsd !go1.11
// +build !windows
package cache_test
import (
"testing"
"github.com/rclone/rclone/fs"
)
func (r *run) mountFs(t *testing.T, f fs.Fs) {
panic("mountFs not defined for this platform")
}
func (r *run) unmountFs(t *testing.T, f fs.Fs) {
panic("unmountFs not defined for this platform")
}

View File

@ -1,4 +1,4 @@
// +build !plan9,!windows
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package cache_test

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,6 +1,6 @@
// FUSE main Fs
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,6 +1,6 @@
// Package mount implents a FUSE mounting system for rclone remotes.
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd
// +build linux,go1.11 darwin,go1.11 freebsd,go1.11
package mount

View File

@ -1,6 +1,14 @@
// Build for mount for unsupported platforms to stop go complaining
// about "no buildable Go source files "
// +build !linux,!darwin,!freebsd
// Invert the build constraint: linux,go1.11 darwin,go1.11 freebsd,go1.11
//
// !((linux&&go1.11) || (darwin&&go1.11) || (freebsd&&go1.11))
// == !(linux&&go1.11) && !(darwin&&go1.11) && !(freebsd&&go1.11))
// == (!linux || !go1.11) && (!darwin || go1.11) && (!freebsd || !go1.11))
// +build !linux !go1.11
// +build !darwin !go1.11
// +build !freebsd !go1.11
package mount