serve restic: disable for go1.16 and earlier after update

This commit is contained in:
Nick Craig-Wood 2021-11-10 14:21:49 +00:00
parent 4198763c35
commit 3661791e82
9 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,4 +1,8 @@
// Package restic serves a remote suitable for use with restic
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,6 +1,9 @@
// Serve restic tests set up a server and run the integration tests
// for restic against it.
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -0,0 +1,14 @@
// Build for restic for unsupported platforms to stop go complaining
// about "no buildable Go source files "
//go:build !go1.17
// +build !go1.17
package restic
import (
"github.com/spf13/cobra"
)
// Command definition for cobra
var Command *cobra.Command

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (

View File

@ -1,3 +1,6 @@
//go:build go1.17
// +build go1.17
package restic
import (