mirror of
https://github.com/rclone/rclone.git
synced 2025-12-31 23:53:18 +00:00
build: remove build constraint syntax for go 1.16 and older
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package cachestats provides the cachestats command.
|
||||
package cachestats
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build plan9 || js
|
||||
// +build plan9 js
|
||||
|
||||
package cachestats
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows)
|
||||
// +build cmount
|
||||
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
||||
|
||||
package cmount
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows)
|
||||
// +build cmount
|
||||
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build brew && darwin
|
||||
// +build brew,darwin
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows) && (!race || !windows)
|
||||
// +build cmount
|
||||
// +build linux,cgo darwin,cgo freebsd,cgo windows
|
||||
// +build !race !windows
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
//go:build !((linux && cgo && cmount) || (darwin && cgo && cmount) || (freebsd && cgo && cmount) || (windows && cmount))
|
||||
// +build !linux !cgo !cmount
|
||||
// +build !darwin !cgo !cmount
|
||||
// +build !freebsd !cgo !cmount
|
||||
// +build !windows !cmount
|
||||
|
||||
// Package cmount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build cmount && cgo && !windows
|
||||
// +build cmount,cgo,!windows
|
||||
|
||||
package cmount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build cmount && windows
|
||||
// +build cmount,windows
|
||||
|
||||
package cmount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// FUSE main Fs
|
||||
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
package mount
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read blocks out of a single file to time the seeking code
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read two files with lots of seeking to stress test the seek code
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read lots files with lots of simultaneous seeking to stress test the seek code
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// FUSE main Fs
|
||||
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
// Package mount2 implements a FUSE mounting system for rclone remotes.
|
||||
package mount2
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mount2
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//go:build !linux && (!darwin || !amd64)
|
||||
// +build !linux
|
||||
// +build !darwin !amd64
|
||||
|
||||
// Package mount2 implements a FUSE mounting system for rclone remotes.
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package mountlib
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package mountlib
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
package mountlib
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build plan9 || js
|
||||
// +build plan9 js
|
||||
|
||||
package mountlib
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
// Package ncdu implements a text based user interface for exploring a remote
|
||||
package ncdu
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build plan9 || js
|
||||
// +build plan9 js
|
||||
|
||||
package ncdu
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
// Package nfsmount implements mounting functionality using serve nfs command
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build darwin && !cmount
|
||||
// +build darwin,!cmount
|
||||
|
||||
package nfsmount
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build !unix
|
||||
// +build !unix
|
||||
|
||||
// Package nfsmount implements mount command using NFS.
|
||||
package nfsmount
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build noselfupdate
|
||||
// +build noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
// Package selfupdate provides the selfupdate command.
|
||||
package selfupdate
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !windows && !plan9 && !js && !noselfupdate
|
||||
// +build !windows,!plan9,!js,!noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//go:build (plan9 || js) && !noselfupdate
|
||||
// +build plan9 js
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build windows && !noselfupdate
|
||||
// +build windows,!noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build noselfupdate
|
||||
// +build noselfupdate
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//go:generate go run assets_generate.go
|
||||
// The "go:generate" directive compiles static assets by running assets_generate.go
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !race
|
||||
// +build !race
|
||||
|
||||
package docker_test
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux && !android
|
||||
// +build linux,!android
|
||||
|
||||
package docker
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !linux || android
|
||||
// +build !linux android
|
||||
|
||||
package docker
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package docker
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !linux && !freebsd
|
||||
// +build !linux,!freebsd
|
||||
|
||||
package docker
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package ftp implements an FTP server for rclone
|
||||
package ftp
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//go:build !windows && !darwin && !plan9
|
||||
// +build !windows,!darwin,!plan9
|
||||
|
||||
package ftp
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package ftp
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
package nfs
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
package nfs
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
// Package nfs implements a server to serve a VFS remote over NFSv3 protocol
|
||||
//
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// For unsupported architectures
|
||||
//go:build !unix
|
||||
// +build !unix
|
||||
|
||||
// Package nfs is not supported on non-Unix platforms
|
||||
package nfs
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build unix
|
||||
// +build unix
|
||||
|
||||
package nfs
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// A simple auth proxy for testing purposes
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// A simple auth proxy for testing purposes
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
// Package sftp implements an SFTP server to serve an rclone VFS
|
||||
package sftp
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//go:build !windows && !darwin && !plan9
|
||||
// +build !windows,!darwin,!plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//go:build !windows && !darwin
|
||||
// +build !windows,!darwin
|
||||
|
||||
package webdav
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build darwin || freebsd || netbsd || dragonfly || openbsd
|
||||
// +build darwin freebsd netbsd dragonfly openbsd
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
//go:build !darwin && !freebsd && !netbsd && !dragonfly && !openbsd
|
||||
// +build !darwin,!freebsd,!netbsd,!dragonfly,!openbsd
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user