fix combination of --pull always --no-build

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2023-12-04 10:54:33 +01:00 committed by Nicolas De loof
parent c5824702bf
commit ce1ddb6c7e
2 changed files with 0 additions and 12 deletions

View File

@ -159,16 +159,6 @@ func (opts createOptions) Apply(project *types.Project) error {
project.Services[i] = service
}
}
// opts.noBuild, however, means do not perform ANY builds
if opts.noBuild {
for i, service := range project.Services {
service.Build = nil
if service.Image == "" {
service.Image = api.GetImageNameOrDefault(service, project.Name)
}
project.Services[i] = service
}
}
if err := applyPlatforms(project, true); err != nil {
return err

View File

@ -177,8 +177,6 @@ func runUp(
}
var build *api.BuildOptions
// this check is technically redundant as createOptions::apply()
// already removed all the build sections
if !createOptions.noBuild {
if createOptions.quietPull {
buildOptions.Progress = string(xprogress.QuietMode)