Upgrade to go 1.25.3 (#35656)

This commit is contained in:
Lunny Xiao 2025-10-15 01:09:32 -07:00 committed by GitHub
parent 9ae2e9e76f
commit 1bdb0b71b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module code.gitea.io/gitea module code.gitea.io/gitea
go 1.25.1 go 1.25.3
// rfc5280 said: "The serial number is an integer assigned by the CA to each certificate." // rfc5280 said: "The serial number is an integer assigned by the CA to each certificate."
// But some CAs use negative serial number, just relax the check. related: // But some CAs use negative serial number, just relax the check. related:

View File

@ -34,12 +34,12 @@ func TestParseGitURLs(t *testing.T) {
}, },
}, },
{ {
kase: "git@[fe80:14fc:cec5:c174:d88%2510]:go-gitea/gitea.git", kase: "git@[fe80::14fc:cec5:c174:d88%2510]:go-gitea/gitea.git",
expected: &GitURL{ expected: &GitURL{
URL: &url.URL{ URL: &url.URL{
Scheme: "ssh", Scheme: "ssh",
User: url.User("git"), User: url.User("git"),
Host: "[fe80:14fc:cec5:c174:d88%10]", Host: "[fe80::14fc:cec5:c174:d88%10]",
Path: "go-gitea/gitea.git", Path: "go-gitea/gitea.git",
}, },
extraMark: 1, extraMark: 1,
@ -137,11 +137,11 @@ func TestParseGitURLs(t *testing.T) {
}, },
}, },
{ {
kase: "https://[fe80:14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git", kase: "https://[fe80::14fc:cec5:c174:d88%2510]:20/go-gitea/gitea.git",
expected: &GitURL{ expected: &GitURL{
URL: &url.URL{ URL: &url.URL{
Scheme: "https", Scheme: "https",
Host: "[fe80:14fc:cec5:c174:d88%10]:20", Host: "[fe80::14fc:cec5:c174:d88%10]:20",
Path: "/go-gitea/gitea.git", Path: "/go-gitea/gitea.git",
}, },
extraMark: 0, extraMark: 0,