(dir string)
| 148 | } |
| 149 | |
| 150 | func (node *HTTPNode) ResolveDir(dir string) (string, error) { |
| 151 | path, err := execext.ExpandLiteral(dir) |
| 152 | if err != nil { |
| 153 | return "", err |
| 154 | } |
| 155 | |
| 156 | if filepathext.IsAbs(path) { |
| 157 | return path, nil |
| 158 | } |
| 159 | |
| 160 | // NOTE: Uses the directory of the entrypoint (Taskfile), not the current working directory |
| 161 | // This means that files are included relative to one another |
| 162 | parent := node.Dir() |
| 163 | if node.Parent() != nil { |
| 164 | parent = node.Parent().Dir() |
| 165 | } |
| 166 | |
| 167 | return filepathext.SmartJoin(parent, path), nil |
| 168 | } |
| 169 | |
| 170 | func (node *HTTPNode) CacheKey() string { |
| 171 | checksum := strings.TrimRight(checksum([]byte(node.Location())), "=") |
nothing calls this directly
no test coverage detected