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

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-04-13 16:39:23 +02:00
parent b7c4fe5a3a
commit 3a90f99635
9 changed files with 113 additions and 69 deletions

View File

@ -55,9 +55,11 @@ func checkConsistency(project *types.Project) error {
}
}
}
for _, secret := range s.Secrets {
if _, ok := project.Secrets[secret.Source]; !ok {
return errors.Wrap(errdefs.ErrInvalid, fmt.Sprintf("service %q refers to undefined secret %s", s.Name, secret.Source))
if s.Build != nil {
for _, secret := range s.Build.Secrets {
if _, ok := project.Secrets[secret.Source]; !ok {
return errors.Wrap(errdefs.ErrInvalid, fmt.Sprintf("service %q refers to undefined build secret %s", s.Name, secret.Source))
}
}
}
for _, config := range s.Configs {