From 84732a15dfcd83c233da6895a7e056ac4152964b Mon Sep 17 00:00:00 2001 From: fujiwara Date: Fri, 2 Aug 2024 15:15:41 +0900 Subject: [PATCH] discard diff output on deploy --- deploy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.go b/deploy.go index f6e00475..ebc47bee 100644 --- a/deploy.go +++ b/deploy.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "io" "os" "os/exec" "strings" @@ -113,7 +114,7 @@ func (d *App) Deploy(ctx context.Context, opt DeployOption) error { return err } addedTags, updatedTags, deletedTags := CompareTags(sv.Tags, newSv.Tags) - differ, err := diffServices(ctx, newSv, sv, d.config.ServiceDefinitionPath, &DiffOption{Unified: true, w: os.Stdout}) + differ, err := diffServices(ctx, newSv, sv, d.config.ServiceDefinitionPath, &DiffOption{Unified: true, w: io.Discard}) if err != nil { return fmt.Errorf("failed to diff of service definitions: %w", err) }