detached ddd2917

Fix x/image CVEs with Go 1.25

commit
ddd2917de44db548761835f267705ee5df4fe1fc
author
patriceckhart · · 2026-07-06 05:51 UTC
parent
cc21943
signature
unsigned
5 files · +9 -8
M go.mod +1 -1
@@ -7,7 +7,7 @@ require (
77 github.com/google/uuid v1.6.0
88 github.com/mattn/go-runewidth v0.0.16
99 github.com/sahilm/fuzzy v0.1.1
10- golang.org/x/image v0.39.0
10+ golang.org/x/image v0.43.0
1111 golang.org/x/sys v0.26.0
1212 golang.org/x/term v0.25.0
1313 )
@@ -7,7 +7,7 @@ require (
7 github.com/google/uuid v1.6.07 github.com/google/uuid v1.6.0
8 github.com/mattn/go-runewidth v0.0.168 github.com/mattn/go-runewidth v0.0.16
9 github.com/sahilm/fuzzy v0.1.19 github.com/sahilm/fuzzy v0.1.1
10- golang.org/x/image v0.39.010+ golang.org/x/image v0.43.0
11 golang.org/x/sys v0.26.011 golang.org/x/sys v0.26.0
12 golang.org/x/term v0.25.012 golang.org/x/term v0.25.0
13 )13 )
M go.sum +2 -4 generated file: collapsed
M packages/provider/auth/callback.go +2 -1
@@ -2,6 +2,7 @@ package auth
22
33 import (
44 "context"
5+ "errors"
56 "fmt"
67 "net"
78 "net/http"
@@ -91,7 +92,7 @@ func (cs *CallbackServer) handle(w http.ResponseWriter, r *http.Request) {
9192 }
9293 w.WriteHeader(http.StatusBadRequest)
9394 _, _ = w.Write([]byte(oauthErrorHTML(msg)))
94- cs.deliver(CallbackResult{Err: fmt.Errorf(msg), RawPath: r.URL.RequestURI()})
95+ cs.deliver(CallbackResult{Err: errors.New(msg), RawPath: r.URL.RequestURI()})
9596 return
9697 }
9798 code := q.Get("code")
@@ -2,6 +2,7 @@ package auth
2 2
3 import (3 import (
4 "context"4 "context"
5+ "errors"
5 "fmt"6 "fmt"
6 "net"7 "net"
7 "net/http"8 "net/http"
@@ -91,7 +92,7 @@ func (cs *CallbackServer) handle(w http.ResponseWriter, r *http.Request) {
91 }92 }
92 w.WriteHeader(http.StatusBadRequest)93 w.WriteHeader(http.StatusBadRequest)
93 _, _ = w.Write([]byte(oauthErrorHTML(msg)))94 _, _ = w.Write([]byte(oauthErrorHTML(msg)))
94- cs.deliver(CallbackResult{Err: fmt.Errorf(msg), RawPath: r.URL.RequestURI()})95+ cs.deliver(CallbackResult{Err: errors.New(msg), RawPath: r.URL.RequestURI()})
95 return96 return
96 }97 }
97 code := q.Get("code")98 code := q.Get("code")
M packages/provider/auth/manager.go +2 -1
@@ -2,6 +2,7 @@ package auth
22
33 import (
44 "context"
5+ "errors"
56 "fmt"
67 "net/url"
78 "os"
@@ -81,7 +82,7 @@ func (m *Manager) Close() {
8182 // StartAPIKey launches the API-key login flow.
8283 func (m *Manager) StartAPIKey(provider string) (string, error) {
8384 if !isKnownAPIKeyProvider(provider) {
84- return "", fmt.Errorf(apiKeyProviderMessage())
85+ return "", errors.New(apiKeyProviderMessage())
8586 }
8687 if err := m.ensureKeyServer(); err != nil {
8788 return "", err
@@ -2,6 +2,7 @@ package auth
2 2
3 import (3 import (
4 "context"4 "context"
5+ "errors"
5 "fmt"6 "fmt"
6 "net/url"7 "net/url"
7 "os"8 "os"
@@ -81,7 +82,7 @@ func (m *Manager) Close() {
81 // StartAPIKey launches the API-key login flow.82 // StartAPIKey launches the API-key login flow.
82 func (m *Manager) StartAPIKey(provider string) (string, error) {83 func (m *Manager) StartAPIKey(provider string) (string, error) {
83 if !isKnownAPIKeyProvider(provider) {84 if !isKnownAPIKeyProvider(provider) {
84- return "", fmt.Errorf(apiKeyProviderMessage())85+ return "", errors.New(apiKeyProviderMessage())
85 }86 }
86 if err := m.ensureKeyServer(); err != nil {87 if err := m.ensureKeyServer(); err != nil {
87 return "", err88 return "", err
M packages/provider/auth/server.go +2 -1
@@ -2,6 +2,7 @@ package auth
22
33 import (
44 "context"
5+ "errors"
56 "fmt"
67 "html/template"
78 "net"
@@ -204,7 +205,7 @@ func (s *Server) handleCallback(w http.ResponseWriter, r *http.Request) {
204205 msg += ": " + d
205206 }
206207 s.errorPage(w, msg)
207- s.results <- LoginResult{Provider: provider, Method: "oauth", Err: fmt.Errorf(msg)}
208+ s.results <- LoginResult{Provider: provider, Method: "oauth", Err: errors.New(msg)}
208209 return
209210 }
210211 code := q.Get("code")
@@ -2,6 +2,7 @@ package auth
2 2
3 import (3 import (
4 "context"4 "context"
5+ "errors"
5 "fmt"6 "fmt"
6 "html/template"7 "html/template"
7 "net"8 "net"
@@ -204,7 +205,7 @@ func (s *Server) handleCallback(w http.ResponseWriter, r *http.Request) {
204 msg += ": " + d205 msg += ": " + d
205 }206 }
206 s.errorPage(w, msg)207 s.errorPage(w, msg)
207- s.results <- LoginResult{Provider: provider, Method: "oauth", Err: fmt.Errorf(msg)}208+ s.results <- LoginResult{Provider: provider, Method: "oauth", Err: errors.New(msg)}
208 return209 return
209 }210 }
210 code := q.Get("code")211 code := q.Get("code")

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close