|
|
|
|
@ -39,7 +39,7 @@ const pluginUpdateDesc = `Update one or more Helm plugins.
|
|
|
|
|
An exact semver version can be supplied per-plugin using the @version syntax:
|
|
|
|
|
|
|
|
|
|
helm plugin update myplugin@1.2.3 otherplugin@2.0.0
|
|
|
|
|
helm plugin update myplugin@v1.0.0
|
|
|
|
|
helm plugin update myplugin@1.0.0
|
|
|
|
|
|
|
|
|
|
Range constraints (e.g. ~1.2, ^1.0.0, >=1.0.0, v1.0.0) are not supported.
|
|
|
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ func (o *pluginUpdateOptions) complete(args []string) error {
|
|
|
|
|
}
|
|
|
|
|
if version != "" {
|
|
|
|
|
if _, err := semver.StrictNewVersion(version); err != nil {
|
|
|
|
|
return fmt.Errorf("invalid version %q for plugin %q: must be an exact semver version (e.g. 1.2.3)", version, name)
|
|
|
|
|
return fmt.Errorf("invalid version %q for plugin %q: must be an exact semver version (e.g. 1.2.3); the 'v' prefix is not allowed", version, name)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
o.plugins[name] = version
|
|
|
|
|
|