From eea4977d02b725ff6f2048674d58da3088113eac Mon Sep 17 00:00:00 2001 From: Fabian Kramm Date: Fri, 14 Dec 2018 11:10:52 +0100 Subject: [PATCH] Fix unmount redeclaration on darwin in github.com/docker/docker/pkg/mount Signed-off-by: Fabian Kramm --- pkg/mount/mounter_unsupported.go | 4 ---- pkg/mount/unmount_unsupported.go | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 pkg/mount/unmount_unsupported.go diff --git a/pkg/mount/mounter_unsupported.go b/pkg/mount/mounter_unsupported.go index 1428dffa52..c3e5aec274 100644 --- a/pkg/mount/mounter_unsupported.go +++ b/pkg/mount/mounter_unsupported.go @@ -5,7 +5,3 @@ package mount // import "github.com/docker/docker/pkg/mount" func mount(device, target, mType string, flag uintptr, data string) error { panic("Not implemented") } - -func unmount(target string, flag int) error { - panic("Not implemented") -} diff --git a/pkg/mount/unmount_unsupported.go b/pkg/mount/unmount_unsupported.go new file mode 100644 index 0000000000..a88ad35774 --- /dev/null +++ b/pkg/mount/unmount_unsupported.go @@ -0,0 +1,7 @@ +// +build windows + +package mount // import "github.com/docker/docker/pkg/mount" + +func unmount(target string, flag int) error { + panic("Not implemented") +}