MCPcopy Create free account
hub / github.com/github/gh-aw / resolveBuiltinIncludePath

Function resolveBuiltinIncludePath

pkg/parser/remote_fetch.go:215–224  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

213}
214
215func resolveBuiltinIncludePath(filePath string) (string, bool, error) {
216 if !strings.HasPrefix(filePath, BuiltinPathPrefix) {
217 return "", false, nil
218 }
219 if !BuiltinVirtualFileExists(filePath) {
220 return "", true, fmt.Errorf("builtin file not found: %s", filePath)
221 }
222 remoteLog.Printf("Resolved builtin path: %s", filePath)
223 return filePath, true, nil
224}
225
226func findGitHubFolder(baseDir string) string {
227 githubFolder := baseDir

Callers 1

ResolveIncludePathFunction · 0.85

Calls 3

BuiltinVirtualFileExistsFunction · 0.85
ErrorfMethod · 0.45
PrintfMethod · 0.45

Tested by

no test coverage detected