mirror of
https://github.com/kopia/kopia.git
synced 2026-03-14 12:16:46 -04:00
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:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build !windows
|
||||
// +build !windows,!freebsd
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build !windows
|
||||
// +build !windows,!freebsd
|
||||
|
||||
package mount
|
||||
|
||||
|
||||
16
internal/mount/mount_unsupported.go
Normal file
16
internal/mount/mount_unsupported.go
Normal 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")
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build linux freebsd
|
||||
|
||||
package restore
|
||||
|
||||
import (
|
||||
Reference in New Issue
Block a user