From 1ff398fb28bcc523aaa398eee87b319dc020317b Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Sun, 18 Aug 2024 09:05:26 +0300 Subject: [PATCH 1/2] chore(watch): Add debug log when skipping service without build context Signed-off-by: Suleiman Dibirov --- pkg/compose/watch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compose/watch.go b/pkg/compose/watch.go index 9ad0567f1ea..e12840dd5df 100644 --- a/pkg/compose/watch.go +++ b/pkg/compose/watch.go @@ -37,8 +37,8 @@ import ( "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/image" + "github.com/go-viper/mapstructure/v2" "github.com/jonboulle/clockwork" - "github.com/mitchellh/mapstructure" "github.com/sirupsen/logrus" "golang.org/x/sync/errgroup" ) @@ -128,6 +128,7 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje } if len(services) == 0 && service.Build == nil { + logrus.Debugf("service %q has no build context, skipping watch", service.Name) continue } From 2be426bd7435a95655937e3f943a6023ae42d8d0 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Mon, 16 Sep 2024 12:05:35 +0300 Subject: [PATCH 2/2] fix import Signed-off-by: Suleiman Dibirov --- pkg/compose/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/watch.go b/pkg/compose/watch.go index e12840dd5df..bcb92f3bc52 100644 --- a/pkg/compose/watch.go +++ b/pkg/compose/watch.go @@ -37,8 +37,8 @@ import ( "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/image" - "github.com/go-viper/mapstructure/v2" "github.com/jonboulle/clockwork" + "github.com/mitchellh/mapstructure" "github.com/sirupsen/logrus" "golang.org/x/sync/errgroup" )