GetBuildxVersion returns the version of the Docker buildx plugin.
()
| 160 | |
| 161 | // GetBuildxVersion returns the version of the Docker buildx plugin. |
| 162 | func 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. |
| 172 | func GetBuildxLocation() (string, error) { |