(entrypoint string)
| 41 | } |
| 42 | |
| 43 | func (node *StdinNode) ResolveEntrypoint(entrypoint string) (string, error) { |
| 44 | // If the file is remote, we don't need to resolve the path |
| 45 | if IsRemoteEntrypoint(entrypoint) { |
| 46 | return entrypoint, nil |
| 47 | } |
| 48 | |
| 49 | path, err := execext.ExpandLiteral(entrypoint) |
| 50 | if err != nil { |
| 51 | return "", err |
| 52 | } |
| 53 | |
| 54 | if filepathext.IsAbs(path) { |
| 55 | return path, nil |
| 56 | } |
| 57 | |
| 58 | return filepathext.SmartJoin(node.Dir(), path), nil |
| 59 | } |
| 60 | |
| 61 | func (node *StdinNode) ResolveDir(dir string) (string, error) { |
| 62 | path, err := execext.ExpandLiteral(dir) |
nothing calls this directly
no test coverage detected