dropbox: Only support on go1.7+

See https://github.com/dropbox/dropbox-sdk-go-unofficial/pull/40
This commit is contained in:
Nick Craig-Wood 2018-01-16 16:37:35 +00:00
parent 7d3a17725d
commit 1848e26183
4 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,7 @@
// Package dropbox provides an interface to Dropbox object storage
// +build go1.7
package dropbox
// FIXME dropbox for business would be quite easy to add

View file

@ -2,6 +2,9 @@
//
// Automatically generated - DO NOT EDIT
// Regenerate with: make gen_tests
// +build go1.7
package dropbox_test
import (

View file

@ -0,0 +1,6 @@
// Build for unsupported platforms to stop go complaining about "no
// buildable Go source files "
// +build !go1.7
package dropbox

View file

@ -150,7 +150,7 @@ func main() {
generateTestProgram(t, fns, "S3")
generateTestProgram(t, fns, "Drive")
generateTestProgram(t, fns, "GoogleCloudStorage")
generateTestProgram(t, fns, "Dropbox")
generateTestProgram(t, fns, "Dropbox", buildConstraint("go1.7"))
generateTestProgram(t, fns, "AmazonCloudDrive")
generateTestProgram(t, fns, "OneDrive")
generateTestProgram(t, fns, "Hubic")