mirror of
https://github.com/pgsty/minio.git
synced 2026-09-05 18:16:16 +03:00
chore(deps): align the SILO Go dependency stack
Standardize the related SILO components on Go 1.27 tooling, etcd 3.7.1, current Go-maintained modules, shared runtime versions, and explicit security and portability pins. Keep the shared package Go 1.26 consumer floor, isolate lint tooling from product dependency selection, and preserve upstream-compatible import paths.
This commit is contained in:
@@ -43,7 +43,7 @@ func DisableDirectIO(f *os.File) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
flag &= ^(syscall.O_DIRECT)
|
||||
flag &= ^syscall.O_DIRECT
|
||||
_, err = unix.FcntlInt(fd, unix.F_SETFL, flag)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func TestNatsConnPlain(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
@@ -59,7 +59,7 @@ func TestNatsConnUserPass(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
@@ -85,7 +85,7 @@ func TestNatsConnToken(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
@@ -116,7 +116,7 @@ func TestNatsConnNKeySeed(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
|
||||
@@ -33,7 +33,7 @@ func TestNatsConnTLSCustomCA(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
@@ -56,7 +56,7 @@ func TestNatsConnTLSCustomCAHandshakeFirst(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
@@ -80,7 +80,7 @@ func TestNatsConnTLSClientAuthorization(t *testing.T) {
|
||||
Enable: true,
|
||||
Address: xnet.Host{
|
||||
Name: "localhost",
|
||||
Port: (xnet.Port(opts.Port)),
|
||||
Port: xnet.Port(opts.Port),
|
||||
IsPortSet: true,
|
||||
},
|
||||
Subject: "test",
|
||||
|
||||
@@ -1806,8 +1806,8 @@ func (ww *wsWriter) writeFrame(w io.Writer, f ws.Frame) error {
|
||||
const (
|
||||
bit0 = 0x80
|
||||
len7 = int64(125)
|
||||
len16 = int64(^(uint16(0)))
|
||||
len64 = int64(^(uint64(0)) >> 1)
|
||||
len16 = int64(^uint16(0))
|
||||
len64 = int64(^uint64(0) >> 1)
|
||||
)
|
||||
|
||||
bts := ww.tmp[:]
|
||||
|
||||
@@ -247,7 +247,7 @@ func (c ChecksumType) StringFull() string {
|
||||
|
||||
// FullObjectRequested will return if the checksum type indicates full object checksum was requested.
|
||||
func (c ChecksumType) FullObjectRequested() bool {
|
||||
return c&(ChecksumFullObject) == ChecksumFullObject || c.Is(ChecksumCRC64NVME)
|
||||
return c&ChecksumFullObject == ChecksumFullObject || c.Is(ChecksumCRC64NVME)
|
||||
}
|
||||
|
||||
// IsMultipartComposite returns true if the checksum is multipart and full object was not requested.
|
||||
|
||||
@@ -58,10 +58,10 @@ func WaitPipe() (*PipeReader, *PipeWriter) {
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
return &PipeReader{
|
||||
PipeReader: r,
|
||||
wait: wg.Wait,
|
||||
}, &PipeWriter{
|
||||
PipeWriter: w,
|
||||
done: wg.Done,
|
||||
}
|
||||
PipeReader: r,
|
||||
wait: wg.Wait,
|
||||
}, &PipeWriter{
|
||||
PipeWriter: w,
|
||||
done: wg.Done,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user