MCPcopy Create free account
hub / github.com/HashLoad/boss / ParseDependency

Function ParseDependency

core/installer/utils.go:42–52  ·  view source on GitHub ↗
(dependencyName string)

Source from the content-addressed store, hash-verified

40}
41
42func ParseDependency(dependencyName string) string {
43 re := regexp.MustCompile(`(?m)(([?^/]).*)`)
44 if !re.Match([]byte(dependencyName)) {
45 return "github.com/hashload/" + dependencyName
46 }
47 re = regexp.MustCompile(`(?m)([?^/].*)(([?^/]).*)`)
48 if !re.Match([]byte(dependencyName)) {
49 return "github.com/" + dependencyName
50 }
51 return dependencyName
52}

Callers 2

UninstallModulesFunction · 0.92
EnsureDependencyOfArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected