build: added freebsd build (untested) with FUSE mounting disabled (#964)

* build: added freebsd build (untested) with mounting disabled until go-fuse has it

* renamed freebsd package names to include 'experimental'
This commit is contained in:
Jarek Kowalski
2021-04-12 20:16:00 -07:00
committed by GitHub
parent 721c04c95d
commit 85aa5e67f2
5 changed files with 22 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- freebsd
goarch:
- amd64
- arm
@@ -24,6 +25,7 @@ archives:
darwin: macOS
linux: linux
windows: windows
freebsd: freebsd-experimental
amd64: x64
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true

View File

@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!freebsd
package mount

View File

@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!freebsd
package mount

View File

@@ -0,0 +1,16 @@
// +build freebsd
package mount
import (
"context"
"github.com/pkg/errors"
"github.com/kopia/kopia/fs"
)
// Directory returns an error due to mounting being unsupported on current operating system.
func Directory(ctx context.Context, entry fs.Directory, mountPoint string, mountOptions Options) (Controller, error) {
return nil, errors.Errorf("mounting is not supported")
}

View File

@@ -1,3 +1,5 @@
// +build linux freebsd
package restore
import (