Merge pull request #3584 from tonistiigi/go1.25-lint
update linters for go1.25 base version
This commit is contained in:
+2
-1
@@ -77,7 +77,8 @@ func (s *shell) listen() error {
|
||||
}()
|
||||
s.SocketPath = filepath.Join(dir, "s.sock")
|
||||
|
||||
s.l, s.err = net.Listen("unix", s.SocketPath)
|
||||
lc := net.ListenConfig{}
|
||||
s.l, s.err = lc.Listen(context.Background(), "unix", s.SocketPath)
|
||||
if s.err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
+2
-1
@@ -120,7 +120,8 @@ func (t *thread) Exec(ctx Context, args []string) (message string, retErr error)
|
||||
}()
|
||||
|
||||
socketPath := filepath.Join(dir, "s.sock")
|
||||
l, err := net.Listen("unix", socketPath)
|
||||
lc := net.ListenConfig{}
|
||||
l, err := lc.Listen(ctx, "unix", socketPath)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
+2
-4
@@ -355,11 +355,9 @@ func (t *thread) prepareResultHandle(c Context, ref gateway.Reference, err error
|
||||
|
||||
// Start the attach. Use the context we created and perform it in
|
||||
// a goroutine. We aren't necessarily assuming this will actually work.
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
wg.Go(func() {
|
||||
t.sh.Attach(ctx, t)
|
||||
}()
|
||||
})
|
||||
}
|
||||
|
||||
func (t *thread) Continue() {
|
||||
|
||||
Reference in New Issue
Block a user