feat: update gitea vendor
runner nix smoke / nix label and flake smoke (push) Failing after 1m28s

This commit is contained in:
2026-09-26 21:18:24 +00:00
parent c439c1b948
commit d9b2a4e787
3538 changed files with 116131 additions and 44340 deletions
@@ -7,7 +7,7 @@ import (
"encoding/hex"
"strings"
"code.gitea.io/gitea/modules/log"
"gitea.dev/modules/log"
"golang.org/x/crypto/argon2"
)
@@ -6,8 +6,8 @@ package hash
import (
"strconv"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/util"
"gitea.dev/modules/log"
"gitea.dev/modules/util"
)
func parseIntParam(value, param, algorithmName, config string, previousErr error) (int, error) {
@@ -10,7 +10,7 @@ import (
"strings"
"sync/atomic"
"code.gitea.io/gitea/modules/log"
"gitea.dev/modules/log"
)
// This package takes care of hashing passwords, verifying passwords, defining
@@ -74,6 +74,7 @@ func TestHashing(t *testing.T) {
runTests := func(password, salt string, shouldPass bool) {
for _, algorithmName := range hashAlgorithmsToTest {
t.Run(algorithmName, func(t *testing.T) {
t.Parallel() // CPU-bound; these subtests only read the shared hasher registry
output, err := Parse(algorithmName).Hash(password, salt)
if shouldPass {
assert.NoError(t, err)
@@ -182,6 +183,7 @@ func TestVectors(t *testing.T) {
for i, vector := range vectors {
for _, algorithm := range vector.algorithms {
t.Run(strconv.Itoa(i)+": "+algorithm, func(t *testing.T) {
t.Parallel() // CPU-bound; these subtests only read the shared hasher registry
pa := Parse(algorithm)
assert.Equal(t, !vector.shouldfail, pa.VerifyPassword(vector.password, vector.output, vector.salt))
})
@@ -8,7 +8,7 @@ import (
"encoding/hex"
"strings"
"code.gitea.io/gitea/modules/log"
"gitea.dev/modules/log"
"golang.org/x/crypto/pbkdf2"
)
@@ -7,7 +7,7 @@ import (
"encoding/hex"
"strings"
"code.gitea.io/gitea/modules/log"
"gitea.dev/modules/log"
"golang.org/x/crypto/scrypt"
)
@@ -13,8 +13,8 @@ import (
"strings"
"sync"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/translation"
"gitea.dev/modules/setting"
"gitea.dev/modules/translation"
)
var (
@@ -8,8 +8,8 @@ import (
"errors"
"fmt"
"code.gitea.io/gitea/modules/auth/password/pwn"
"code.gitea.io/gitea/modules/setting"
"gitea.dev/modules/auth/password/pwn"
"gitea.dev/modules/setting"
)
var ErrIsPwned = errors.New("password has been pwned")
@@ -14,7 +14,7 @@ import (
"strconv"
"strings"
"code.gitea.io/gitea/modules/setting"
"gitea.dev/modules/setting"
)
const passwordURL = "https://api.pwnedpasswords.com/range/"