update github.com/compose-spec/compose-go to v1.2.7

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-06-08 22:53:15 +02:00
parent 6cb026b766
commit 50c23aa755
17 changed files with 275 additions and 105 deletions

View File

@ -68,5 +68,15 @@ func checkConsistency(project *types.Project) error {
}
}
}
for name, secret := range project.Secrets {
if secret.External.External {
continue
}
if secret.File == "" && secret.Environment == "" {
return errors.Wrap(errdefs.ErrInvalid, fmt.Sprintf("secret %q must declare either `file` or `environment`", name))
}
}
return nil
}