diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index 91a0998ba4..64815ce694 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -101,6 +101,12 @@ func (p *Plugin) IsV1() bool { return true } +// ScopedPath returns the path scoped to the plugin's rootfs. +// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. +func (p *Plugin) ScopedPath(s string) string { + return s +} + // NewLocalPlugin creates a new local plugin. func NewLocalPlugin(name, addr string) *Plugin { return &Plugin{ diff --git a/pkg/plugins/plugins_unix.go b/pkg/plugins/plugins_unix.go deleted file mode 100644 index fb78cefb24..0000000000 --- a/pkg/plugins/plugins_unix.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build !windows - -package plugins // import "github.com/docker/docker/pkg/plugins" - -// ScopedPath returns the path scoped to the plugin's rootfs. -// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. -func (p *Plugin) ScopedPath(s string) string { - return s -} diff --git a/pkg/plugins/plugins_windows.go b/pkg/plugins/plugins_windows.go deleted file mode 100644 index ddf1d786c6..0000000000 --- a/pkg/plugins/plugins_windows.go +++ /dev/null @@ -1,7 +0,0 @@ -package plugins // import "github.com/docker/docker/pkg/plugins" - -// ScopedPath returns the path scoped to the plugin's rootfs. -// For v1 plugins, this always returns the path unchanged as v1 plugins run directly on the host. -func (p *Plugin) ScopedPath(s string) string { - return s -}