(nestedImportPath, nestedFilePath string, item importQueueItem, workflowFilePath string, yamlContent string, resolveErr error)
| 446 | } |
| 447 | |
| 448 | func formatNestedResolveError(nestedImportPath, nestedFilePath string, item importQueueItem, workflowFilePath string, yamlContent string, resolveErr error) error { |
| 449 | if workflowFilePath != "" && yamlContent != "" { |
| 450 | line, column := findImportItemLocation(yamlContent, item.importPath) |
| 451 | importErr := &ImportError{ImportPath: nestedImportPath, FilePath: workflowFilePath, Line: line, Column: column, Cause: resolveErr} |
| 452 | return FormatImportError(importErr, yamlContent) |
| 453 | } |
| 454 | return fmt.Errorf("failed to resolve nested import '%s' from '%s': %w", nestedFilePath, item.fullPath, resolveErr) |
| 455 | } |
| 456 | |
| 457 | func canonicalizeNestedImportPath(nestedImportPath, nestedBaseDir, baseDir string, nestedRemoteOrigin *remoteImportOrigin, nestedFullPath string) string { |
| 458 | if nestedRemoteOrigin != nil || nestedBaseDir == baseDir { |
no test coverage detected