mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0ef21eb0e3
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>
7 lines
222 B
Go
7 lines
222 B
Go
package plugins
|
|
|
|
// BasePath returns the path to which all paths returned by the plugin are relative to.
|
|
// For v1 plugins, this always returns the host's root directory.
|
|
func (p *Plugin) BasePath() string {
|
|
return "/"
|
|
}
|