()
| 50 | } |
| 51 | |
| 52 | func (node *FileNode) Read() ([]byte, error) { |
| 53 | f, err := os.Open(node.Location()) |
| 54 | if err != nil { |
| 55 | return nil, err |
| 56 | } |
| 57 | defer f.Close() |
| 58 | return io.ReadAll(f) |
| 59 | } |
| 60 | |
| 61 | func (node *FileNode) ResolveEntrypoint(entrypoint string) (string, error) { |
| 62 | // If the file is remote, we don't need to resolve the path |