MCPcopy Create free account
hub / github.com/ddev/ddev / GetBuildxLocation

Function GetBuildxLocation

pkg/dockerutil/requirements.go:172–178  ·  view source on GitHub ↗

GetBuildxLocation returns the path to the Docker buildx plugin.

()

Source from the content-addressed store, hash-verified

170
171// GetBuildxLocation returns the path to the Docker buildx plugin.
172func GetBuildxLocation() (string, error) {
173 plugin, err := GetCLIPlugin("buildx")
174 if err != nil {
175 return "", err
176 }
177 return plugin.Path, nil
178}
179
180// CheckDockerBuildxVersion checks that the Docker buildx plugin is installed
181// and meets the minimum version requirement.

Callers 2

TestGetBuildxLocationFunction · 0.92
CheckDockerBuildxVersionFunction · 0.85

Calls 1

GetCLIPluginFunction · 0.85

Tested by 1

TestGetBuildxLocationFunction · 0.74