From 649cbec6c5396ec4444b5140ab5c9ff94826b5ff Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Tue, 12 May 2020 11:30:41 +0200 Subject: [PATCH] Simplify build tags for restic mount This command can only be built on Darwin, FreeBSD and Linux (and if we upgrade bazil.org/fuse, only FreeBSD and Linux: https://github.com/bazil/fuse/issues/224). Listing the few supported operating systems explicitly here makes porting restic to new platforms easier. --- cmd/restic/cmd_mount.go | 5 +---- internal/fuse/blob_size_cache.go | 5 +---- internal/fuse/dir.go | 5 +---- internal/fuse/file.go | 5 +---- internal/fuse/fuse_test.go | 5 +---- internal/fuse/link.go | 5 +---- internal/fuse/meta_dir.go | 5 +---- internal/fuse/other.go | 5 +---- internal/fuse/root.go | 5 +---- internal/fuse/snapshots_dir.go | 5 +---- 10 files changed, 10 insertions(+), 40 deletions(-) diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index 86a84ff75..fcfe11fbc 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package main diff --git a/internal/fuse/blob_size_cache.go b/internal/fuse/blob_size_cache.go index 47599a820..4e9873092 100644 --- a/internal/fuse/blob_size_cache.go +++ b/internal/fuse/blob_size_cache.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/dir.go b/internal/fuse/dir.go index 4a6b0f40f..03d56883a 100644 --- a/internal/fuse/dir.go +++ b/internal/fuse/dir.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/file.go b/internal/fuse/file.go index 215841622..7d7f489c8 100644 --- a/internal/fuse/file.go +++ b/internal/fuse/file.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/fuse_test.go b/internal/fuse/fuse_test.go index 1f2d9bf53..bb54224ee 100644 --- a/internal/fuse/fuse_test.go +++ b/internal/fuse/fuse_test.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/link.go b/internal/fuse/link.go index 6772ac5f0..8bf7813d9 100644 --- a/internal/fuse/link.go +++ b/internal/fuse/link.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/meta_dir.go b/internal/fuse/meta_dir.go index b6b681065..c2d433c33 100644 --- a/internal/fuse/meta_dir.go +++ b/internal/fuse/meta_dir.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/other.go b/internal/fuse/other.go index b497087e6..a2aa3b47a 100644 --- a/internal/fuse/other.go +++ b/internal/fuse/other.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/root.go b/internal/fuse/root.go index 12418488f..a7061b224 100644 --- a/internal/fuse/root.go +++ b/internal/fuse/root.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse diff --git a/internal/fuse/snapshots_dir.go b/internal/fuse/snapshots_dir.go index a579d6de4..2c007e5ae 100644 --- a/internal/fuse/snapshots_dir.go +++ b/internal/fuse/snapshots_dir.go @@ -1,7 +1,4 @@ -// +build !netbsd -// +build !openbsd -// +build !solaris -// +build !windows +// +build darwin freebsd linux package fuse