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

Function determineNestedBaseDir

pkg/parser/import_bfs.go:440–446  ·  view source on GitHub ↗
(item importQueueItem, resolvedPath, baseDir string)

Source from the content-addressed store, hash-verified

438}
439
440func determineNestedBaseDir(item importQueueItem, resolvedPath, baseDir string) string {
441 isLocalRelative := !strings.Contains(resolvedPath, "/") || strings.HasPrefix(resolvedPath, "./")
442 if item.remoteOrigin == nil && !isWorkflowSpec(resolvedPath) && isLocalRelative {
443 return filepath.Dir(item.fullPath)
444 }
445 return baseDir
446}
447
448func formatNestedResolveError(nestedImportPath, nestedFilePath string, item importQueueItem, workflowFilePath string, yamlContent string, resolveErr error) error {
449 if workflowFilePath != "" && yamlContent != "" {

Callers 1

enqueueNestedImportEntryFunction · 0.85

Calls 1

isWorkflowSpecFunction · 0.70

Tested by

no test coverage detected