bump compose-go v2.4.6

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2024-12-13 16:00:43 +01:00
parent 3e3242cfdd
commit 828c1dbf98
18 changed files with 189 additions and 14 deletions

View File

@ -155,7 +155,7 @@ func checkConsistency(project *types.Project) error {
if s.Develop != nil && s.Develop.Watch != nil {
for _, watch := range s.Develop.Watch {
if watch.Action != types.WatchActionRebuild && watch.Target == "" {
if watch.Target == "" && watch.Action != types.WatchActionRebuild && watch.Action != types.WatchActionRestart {
return fmt.Errorf("services.%s.develop.watch: target is required for non-rebuild actions: %w", s.Name, errdefs.ErrInvalid)
}
}