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

Function GetBuildxVersion

pkg/dockerutil/requirements.go:162–169  ·  view source on GitHub ↗

GetBuildxVersion returns the version of the Docker buildx plugin.

()

Source from the content-addressed store, hash-verified

160
161// GetBuildxVersion returns the version of the Docker buildx plugin.
162func GetBuildxVersion() (string, error) {
163 plugin, err := GetCLIPlugin("buildx")
164 if err != nil {
165 return "", err
166 }
167 // Strip leading "v" prefix if present for semver compatibility
168 return strings.TrimPrefix(plugin.Version, "v"), nil
169}
170
171// GetBuildxLocation returns the path to the Docker buildx plugin.
172func GetBuildxLocation() (string, error) {

Callers 4

GetVersionInfoFunction · 0.92
TestGetBuildxVersionFunction · 0.92
CheckDockerBuildxVersionFunction · 0.85

Calls 1

GetCLIPluginFunction · 0.85

Tested by 1

TestGetBuildxVersionFunction · 0.74