(ctx context.Context, filePath string, project *types.Project)
| 746 | } |
| 747 | |
| 748 | func composeFileAsByteReader(ctx context.Context, filePath string, project *types.Project) (io.Reader, error) { |
| 749 | base, err := loadUnresolvedFile(ctx, project, filePath) |
| 750 | if err != nil { |
| 751 | return nil, fmt.Errorf("failed to load compose file %s: %w", filePath, err) |
| 752 | } |
| 753 | in, err := base.MarshalYAML() |
| 754 | if err != nil { |
| 755 | return nil, err |
| 756 | } |
| 757 | return bytes.NewBuffer(in), nil |
| 758 | } |
no test coverage detected