c54b717 caused a regression for pluginv1 on Windows, where extraneous backslashes were added to BasePath of the plugin. For pluginv1 on windows, BasePath() should return an empty string, since the plugin is fully aware of the mount path. Also, unlike Linux where all paths are relative to "/", Windows paths are dependent on system drives and mapped drives. Fixes #30148 Signed-off-by: Anusha Ragunathan <anusha.ragunathan@docker.com> Upstream-commit: 0ef21eb0e30d2ea036730a7c5502f888c6b763d1 Component: engine
9 lines
284 B
Go
9 lines
284 B
Go
package plugins
|
|
|
|
// BasePath returns the path to which all paths returned by the plugin are relative to.
|
|
// For Windows v1 plugins, this returns an empty string, since the plugin is already aware
|
|
// of the absolute path of the mount.
|
|
func (p *Plugin) BasePath() string {
|
|
return ""
|
|
}
|