( ctx context.Context, workspace bufworkspace.Workspace, functionOptions *functionOptions, )
| 957 | } |
| 958 | |
| 959 | func (c *controller) getImageForWorkspace( |
| 960 | ctx context.Context, |
| 961 | workspace bufworkspace.Workspace, |
| 962 | functionOptions *functionOptions, |
| 963 | ) (bufimage.Image, error) { |
| 964 | image, err := c.buildImage( |
| 965 | ctx, |
| 966 | bufmodule.ModuleSetToModuleReadBucketWithOnlyProtoFiles(workspace), |
| 967 | functionOptions, |
| 968 | ) |
| 969 | if err != nil { |
| 970 | return nil, err |
| 971 | } |
| 972 | if err := c.warnUnconfiguredTransitiveImports(ctx, workspace, image); err != nil { |
| 973 | return nil, err |
| 974 | } |
| 975 | return image, nil |
| 976 | } |
| 977 | |
| 978 | func (c *controller) getWorkspaceForProtoFileRef( |
| 979 | ctx context.Context, |
no test coverage detected