Skip to content

Commit

Permalink
discard diff output on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Aug 2, 2024
1 parent 4d633d3 commit 84732a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"io"
"os"
"os/exec"
"strings"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 84732a1

Please sign in to comment.