MCPcopy Index your code
hub / github.com/helm/helm / FindSource

Function FindSource

internal/plugin/installer/installer.go:159–170  ·  view source on GitHub ↗

FindSource determines the correct Installer for the given source.

(location string)

Source from the content-addressed store, hash-verified

157
158// FindSource determines the correct Installer for the given source.
159func FindSource(location string) (Installer, error) {
160 installer, err := existingVCSRepo(location)
161 if err != nil && err.Error() == "Cannot detect VCS" {
162 slog.Warn(
163 "cannot get information about plugin source",
164 slog.String("location", location),
165 slog.Any("error", err),
166 )
167 return installer, errors.New("cannot get information about plugin source")
168 }
169 return installer, err
170}
171
172// isLocalReference checks if the source exists on the filesystem.
173func isLocalReference(source string) bool {

Callers 3

updatePluginFunction · 0.92
TestVCSInstallerFunction · 0.85
TestVCSInstallerUpdateFunction · 0.85

Calls 3

existingVCSRepoFunction · 0.85
ErrorMethod · 0.45
StringMethod · 0.45

Tested by 2

TestVCSInstallerFunction · 0.68
TestVCSInstallerUpdateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…