mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:37:46 +08:00

diffs: - https://github.com/docker/cli/compare/v26.1.4..v27.0.1 - https://github.com/docker/docker/compare/v26.1.4..v27.0.1 - https://github.com/moby/buildkit/compare/v0.14.1...aaaf86e5470bffbb395f5c15ad4a1c152642ea30 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
21 lines
834 B
Go
21 lines
834 B
Go
//go:build !windows
|
|
|
|
package manager
|
|
|
|
// defaultSystemPluginDirs are the platform-specific locations to search
|
|
// for plugins in order of preference.
|
|
//
|
|
// Plugin-discovery is performed in the following order of preference:
|
|
//
|
|
// 1. The "cli-plugins" directory inside the CLIs config-directory (usually "~/.docker/cli-plugins").
|
|
// 2. Additional plugin directories as configured through [ConfigFile.CLIPluginsExtraDirs].
|
|
// 3. Platform-specific defaultSystemPluginDirs (as defined below).
|
|
//
|
|
// [ConfigFile.CLIPluginsExtraDirs]: https://pkg.go.dev/github.com/docker/cli@v26.1.4+incompatible/cli/config/configfile#ConfigFile.CLIPluginsExtraDirs
|
|
var defaultSystemPluginDirs = []string{
|
|
"/usr/local/lib/docker/cli-plugins",
|
|
"/usr/local/libexec/docker/cli-plugins",
|
|
"/usr/lib/docker/cli-plugins",
|
|
"/usr/libexec/docker/cli-plugins",
|
|
}
|