Skip to content

Commit

Permalink
Simplify build tags for restic mount
Browse files Browse the repository at this point in the history
This command can only be built on Darwin, FreeBSD and Linux
(and if we upgrade bazil.org/fuse, only FreeBSD and Linux:
bazil/fuse#224).

Listing the few supported operating systems explicitly here makes
porting restic to new platforms easier.
  • Loading branch information
greatroar authored and seqizz committed May 28, 2020
1 parent 9cba917 commit 6a75b43
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 40 deletions.
5 changes: 1 addition & 4 deletions cmd/restic/cmd_mount.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package main

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/blob_size_cache.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/dir.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/fuse_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/link.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/meta_dir.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/other.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down
5 changes: 1 addition & 4 deletions internal/fuse/snapshots_dir.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// +build !netbsd
// +build !openbsd
// +build !solaris
// +build !windows
// +build darwin freebsd linux

package fuse

Expand Down

0 comments on commit 6a75b43

Please sign in to comment.