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

Function buildSearchPath

core/compiler/executor.go:41–55  ·  view source on GitHub ↗
(dep *models.Dependency)

Source from the content-addressed store, hash-verified

39}
40
41func buildSearchPath(dep *models.Dependency) string {
42 var searchPath = ""
43
44 if dep != nil {
45 searchPath = filepath.Join(env.GetModulesDir(), dep.GetName())
46
47 if pac, e := models.LoadPackageOther(filepath.Join(env.GetModulesDir(), dep.GetName(), consts.FilePackage)); e == nil {
48 searchPath += ";" + filepath.Join(env.GetModulesDir(), dep.GetName(), pac.MainSrc)
49 for _, lib := range pac.GetParsedDependencies() {
50 searchPath += buildSearchPath(&lib)
51 }
52 }
53 }
54 return searchPath
55}
56
57func compile(dprojPath string, dep *models.Dependency, rootLock models.PackageLock) bool {
58 msg.Info(" Building " + filepath.Base(dprojPath))

Callers 1

compileFunction · 0.85

Calls 4

GetModulesDirFunction · 0.92
LoadPackageOtherFunction · 0.92
GetNameMethod · 0.80
GetParsedDependenciesMethod · 0.80

Tested by

no test coverage detected