aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2025-03-31 21:42:54 -0700
committerGitHub <noreply@github.com>2025-03-31 21:42:54 -0700
commit216c52e377fb671f659ee7bb968c5b7e2af878db (patch)
treedcb86bea892e4e42bd028b682ef79cea76c4f84a /weed/shell
parent1af0b282db8c38fb586e707b910ec54351a15590 (diff)
downloadseaweedfs-216c52e377fb671f659ee7bb968c5b7e2af878db.tar.xz
seaweedfs-216c52e377fb671f659ee7bb968c5b7e2af878db.zip
chore(deps): bump gocloud.dev from 0.40.0 to 0.41.0 (#6679)
* chore(deps): bump gocloud.dev from 0.40.0 to 0.41.0 Bumps [gocloud.dev](https://github.com/google/go-cloud) from 0.40.0 to 0.41.0. - [Release notes](https://github.com/google/go-cloud/releases) - [Commits](https://github.com/google/go-cloud/compare/v0.40.0...v0.41.0) --- updated-dependencies: - dependency-name: gocloud.dev dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix error * fix printing errors * Update go.mod --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chrislu <chris.lu@gmail.com>
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_fs_configure.go2
-rw-r--r--weed/shell/command_s3_circuitbreaker.go11
-rw-r--r--weed/shell/command_s3_clean_uploads.go2
-rw-r--r--weed/shell/command_s3_configure.go2
4 files changed, 9 insertions, 8 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 35f49688d..c27c6c7b5 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -136,7 +136,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
var buf2 bytes.Buffer
fc.ToText(&buf2)
- fmt.Fprintf(writer, string(buf2.Bytes()))
+ fmt.Fprint(writer, buf2.String())
fmt.Fprintln(writer)
if *apply {
diff --git a/weed/shell/command_s3_circuitbreaker.go b/weed/shell/command_s3_circuitbreaker.go
index 5abc2d429..43ff454f7 100644
--- a/weed/shell/command_s3_circuitbreaker.go
+++ b/weed/shell/command_s3_circuitbreaker.go
@@ -4,13 +4,14 @@ import (
"bytes"
"flag"
"fmt"
- "github.com/seaweedfs/seaweedfs/weed/filer"
- "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb"
- "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"io"
"strconv"
"strings"
+ "github.com/seaweedfs/seaweedfs/weed/filer"
+ "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb"
+ "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
+
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
)
@@ -180,8 +181,8 @@ func (c *commandS3CircuitBreaker) Do(args []string, commandEnv *CommandEnv, writ
return err
}
- _, _ = fmt.Fprintf(writer, string(buf.Bytes()))
- _, _ = fmt.Fprintln(writer)
+ fmt.Fprint(writer, buf.String())
+ fmt.Fprintln(writer)
if *apply {
if err := commandEnv.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index aa296dd67..bfce5d54d 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/weed/shell/command_s3_clean_uploads.go
@@ -64,7 +64,7 @@ func (c *commandS3CleanUploads) Do(args []string, commandEnv *CommandEnv, writer
for _, bucket := range buckets {
if err := c.cleanupUploads(commandEnv, writer, filerBucketsPath, bucket, *uploadedTimeAgo, signingKey); err != nil {
- fmt.Fprintf(writer, fmt.Sprintf("failed cleanup uploads for bucket %s: %v", bucket, err))
+ fmt.Fprintf(writer, "failed cleanup uploads for bucket %s: %v", bucket, err)
}
}
diff --git a/weed/shell/command_s3_configure.go b/weed/shell/command_s3_configure.go
index 0726bd143..478d62a6d 100644
--- a/weed/shell/command_s3_configure.go
+++ b/weed/shell/command_s3_configure.go
@@ -176,7 +176,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
buf.Reset()
filer.ProtoToText(&buf, s3cfg)
- fmt.Fprintf(writer, string(buf.Bytes()))
+ fmt.Fprint(writer, buf.String())
fmt.Fprintln(writer)
if *apply {