Replace gobwas/glob package (#35478)

https://github.com/gobwas/glob is unmaintained and has bugs.
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-09-13 18:01:00 +00:00
1 parent 688abac5ca
commit 4fe1066a17
29 files changed
+418 -45

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
package setting
import "github.com/gobwas/glob"
import "code.gitea.io/gitea/modules/glob"
type GlobMatcher struct {
compiledGlob glob.Glob
+1 -2
View File
@@ -9,10 +9,9 @@ import (
"strings"
"time"
"code.gitea.io/gitea/modules/glob"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/structs"
"github.com/gobwas/glob"
)
// enumerates all the types of captchas
+1 -1
View File
@@ -6,10 +6,10 @@ package setting
import (
"testing"
"code.gitea.io/gitea/modules/glob"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/test"
"github.com/gobwas/glob"
"github.com/stretchr/testify/assert"
)