File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ type modelAPI struct {
7575 env []string
7676 prepare func (ctx context.Context , cmd * exec.Cmd ) error
7777 cleanup func ()
78+ version string
7879}
7980
8081func (s * composeService ) newModelAPI (project * types.Project ) (* modelAPI , error ) {
@@ -85,12 +86,16 @@ func (s *composeService) newModelAPI(project *types.Project) (*modelAPI, error)
8586 }
8687 return nil , err
8788 }
89+ if dockerModel .Err != nil {
90+ return nil , fmt .Errorf ("failed to load Docker Model plugin: %w" , dockerModel .Err )
91+ }
8892 endpoint , cleanup , err := s .propagateDockerEndpoint ()
8993 if err != nil {
9094 return nil , err
9195 }
9296 return & modelAPI {
93- path : dockerModel .Path ,
97+ path : dockerModel .Path ,
98+ version : dockerModel .Version ,
9499 prepare : func (ctx context.Context , cmd * exec.Cmd ) error {
95100 return s .prepareShellOut (ctx , project .Environment , cmd )
96101 },
You can’t perform that action at this time.
0 commit comments