code: func (i *VCSInstaller) Install() error {
  	if err := i.sync(i.Repo); err != nil {
  		return err
  	}
  
  	ref, err := i.solveVersion(i.Repo)
  	if err != nil {
  		return err
  	}
  	if ref != "" {
  		if err := i.setVersion(i.Repo, ref); err != nil {
  			return err
  		}
  	}
  
  	if !isPlugin(i.Repo.LocalPath()) {
  		return ErrMissingMetadata
  	}
  
  	return i.link(i.Repo.LocalPath())
  }
docs: // Install clones a remote repository and creates a symlink to the plugin directory in HELM_HOME.
  //
  // Implements Installer.