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

Function LoadPackageOther

models/package.go:102–112  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

100}
101
102func LoadPackageOther(path string) (*Package, error) {
103 if fileBytes, e := ReadFile(path); e != nil {
104 return getNew(path), e
105 } else {
106 result := getNew(path)
107 if err := json.Unmarshal(fileBytes, result); err != nil {
108 return nil, e
109 }
110 return result, nil
111 }
112}

Callers 8

GetNewPathsFunction · 0.92
buildSearchPathFunction · 0.92
compileFunction · 0.92
loadGraphFunction · 0.92
saveLoadOrderFunction · 0.92
buildOrderedPackagesFunction · 0.92
processOthersFunction · 0.92
printDepsFunction · 0.92

Calls 1

getNewFunction · 0.85

Tested by

no test coverage detected