refactor: import Gotea from Gitea v28.4.0

Rename the main module to gotea.dev and the binary to gotea, and update the application name and English locale. Keep the external gitea.dev/sdk and gitea.dev/actionslib module imports unchanged.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
This commit is contained in:
lotherk committed 2026-11-22 12:13:09 +00:00
1 parent 0b5dfdeeea
commit 1b490485ff
2628 files changed
+12625 -12621

No files matched your search

+4
View File
@@ -120,3 +120,7 @@ prime/
# A Makefile for custom make targets
Makefile.local
# Built binaries
/gotea
/cgi/gotea-cgi
+12 -12
View File
@@ -53,9 +53,9 @@ else ifeq ($(patsubst Windows%,Windows,$(OS)),Windows)
endif
ifeq ($(IS_WINDOWS),yes)
EXECUTABLE ?= gitea.exe
EXECUTABLE ?= gotea.exe
else
EXECUTABLE ?= gitea
EXECUTABLE ?= gotea
endif
# EXTRA_GOFLAGS is for the 'go build' command only
@@ -109,8 +109,8 @@ endif
LDFLAGS := $(LDFLAGS) -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
RELEASE_ENV = GO="$(GO)" TAGS="$(TAGS)" LDFLAGS="$(LDFLAGS)" DIST="$(DIST)" VERSION="$(VERSION)"
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list gitea.dev/modelmigration/...) gitea.dev/tests/integration/migration-test gitea.dev/tests gitea.dev/tests/integration,$(shell $(GO) list ./... | grep -v /vendor/))
MIGRATE_TEST_PACKAGES ?= $(shell $(GO) list gitea.dev/modelmigration/...)
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list gotea.dev/modelmigration/...) gotea.dev/tests/integration/migration-test gotea.dev/tests gotea.dev/tests/integration,$(shell $(GO) list ./... | grep -v /vendor/))
MIGRATE_TEST_PACKAGES ?= $(shell $(GO) list gotea.dev/modelmigration/...)
FRONTEND_SOURCES := $(shell find web_src/js web_src/css -type f)
FRONTEND_CONFIGS := vite.config.ts tailwind.config.ts
@@ -152,17 +152,17 @@ SWAGGER_SPEC := templates/swagger/v1-swagger.generated.json
OPENAPI3_SPEC := templates/swagger/v1-openapi3.generated.json
TEST_MYSQL_HOST ?= mysql:3306
TEST_MYSQL_DBNAME ?= testgitea
TEST_MYSQL_DBNAME ?= testgotea
TEST_MYSQL_USERNAME ?= root
TEST_MYSQL_PASSWORD ?=
TEST_PGSQL_HOST ?= pgsql:5432
TEST_PGSQL_DBNAME ?= testgitea
TEST_PGSQL_DBNAME ?= testgotea
TEST_PGSQL_USERNAME ?= postgres
TEST_PGSQL_PASSWORD ?= postgres
TEST_PGSQL_SCHEMA ?= gtestschema
TEST_MINIO_ENDPOINT ?= minio:9000
TEST_MSSQL_HOST ?= mssql:1433
TEST_MSSQL_DBNAME ?= testgitea
TEST_MSSQL_DBNAME ?= testgotea
TEST_MSSQL_USERNAME ?= sa
TEST_MSSQL_PASSWORD ?= MwantsaSecurePassword1
@@ -451,23 +451,23 @@ test-integration: $(EXECUTABLE)
@# Use a compiled binary: testlogger forwards gitea logs to t.Log, so `go test -v`
@# would flood output per passing test. testcache can't help these tests anyway —
@# they mutate the work directory, so cache inputs change between runs.
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -c gitea.dev/tests/integration -o ./test-integration-$(GITEA_TEST_DATABASE).test
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -c gotea.dev/tests/integration -o ./test-integration-$(GITEA_TEST_DATABASE).test
./tools/test-integration.sh ./test-integration-$(GITEA_TEST_DATABASE).test
.PHONY: test-integration-compile
test-integration-compile:
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -c -o /dev/null gitea.dev/tests/integration
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -c -o /dev/null gotea.dev/tests/integration
.PHONY: test-integration\#%
test-integration\#%: $(EXECUTABLE)
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -run '$(subst .,/,$*)' gitea.dev/tests/integration
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' -run '$(subst .,/,$*)' gotea.dev/tests/integration
.PHONY: test-migration
test-migration: migrations.integration.test migrations.individual.test
.PHONY: migrations.integration.test
migrations.integration.test:
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' gitea.dev/tests/integration/migration-test
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' gotea.dev/tests/integration/migration-test
.PHONY: migrations.individual.test
migrations.individual.test:
@@ -476,7 +476,7 @@ migrations.individual.test:
.PHONY: migrations.individual.test\#%
migrations.individual.test\#%:
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' gitea.dev/modelmigration/$*
$(GO) test $(GOTEST_FLAGS) -tags '$(TAGS)' gotea.dev/modelmigration/$*
.PHONY: playwright
playwright: deps-frontend
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"fmt"
"os"
"gitea.dev/modules/assetfs"
"gotea.dev/modules/assetfs"
)
func main() {
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"slices"
"strings"
"gitea.dev/modules/json"
"gotea.dev/modules/json"
)
const (
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"path/filepath"
"strings"
"gitea.dev/modules/util"
"gotea.dev/modules/util"
)
func main() {
+2 -2
View File
@@ -29,8 +29,8 @@ var primaryLicenseRe = regexp.MustCompile(`^(?i)(LICEN[SC]E|COPYING)$`)
// ignoredNames are LicenseEntry.Name values to exclude from the output.
var ignoredNames = map[string]bool{
"gitea.dev": true,
"gitea.dev/options/license": true,
"gotea.dev": true,
"gotea.dev/options/license": true,
}
var excludedExt = map[string]bool{
+1 -1
View File
@@ -24,7 +24,7 @@ import (
"sort"
"strings"
"gitea.dev/build/openapi3gen"
"gotea.dev/build/openapi3gen"
)
const (
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"sort"
"strings"
"gitea.dev/modules/json"
"gotea.dev/modules/json"
"github.com/getkin/kin-openapi/openapi2"
"github.com/getkin/kin-openapi/openapi2conv"
+2 -2
View File
@@ -6,8 +6,8 @@ package cmd
import (
"context"
"gitea.dev/modules/private"
"gitea.dev/modules/setting"
"gotea.dev/modules/private"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+5 -5
View File
@@ -8,11 +8,11 @@ import (
"context"
"fmt"
"gitea.dev/models/db"
repo_model "gitea.dev/models/repo"
"gitea.dev/modules/git"
"gitea.dev/modules/log"
repo_module "gitea.dev/modules/repository"
"gotea.dev/models/db"
repo_model "gotea.dev/models/repo"
"gotea.dev/modules/git"
"gotea.dev/modules/log"
repo_module "gotea.dev/modules/repository"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"os"
"text/tabwriter"
auth_model "gitea.dev/models/auth"
"gitea.dev/models/db"
auth_service "gitea.dev/services/auth"
auth_model "gotea.dev/models/auth"
"gotea.dev/models/db"
auth_service "gotea.dev/services/auth"
"github.com/urfave/cli/v3"
)
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"fmt"
"strings"
"gitea.dev/models/auth"
"gitea.dev/modules/util"
auth_service "gitea.dev/services/auth"
"gitea.dev/services/auth/source/ldap"
"gotea.dev/models/auth"
"gotea.dev/modules/util"
auth_service "gotea.dev/services/auth"
"gotea.dev/services/auth/source/ldap"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"context"
"testing"
"gitea.dev/models/auth"
"gitea.dev/modules/test"
"gitea.dev/services/auth/source/ldap"
"gotea.dev/models/auth"
"gotea.dev/modules/test"
"gotea.dev/services/auth/source/ldap"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"fmt"
"net/url"
auth_model "gitea.dev/models/auth"
"gitea.dev/modules/util"
"gitea.dev/services/auth/source/oauth2"
auth_model "gotea.dev/models/auth"
"gotea.dev/modules/util"
"gotea.dev/services/auth/source/oauth2"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"testing"
auth_model "gitea.dev/models/auth"
"gitea.dev/services/auth/source/oauth2"
auth_model "gotea.dev/models/auth"
"gotea.dev/services/auth/source/oauth2"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"errors"
"strings"
auth_model "gitea.dev/models/auth"
"gitea.dev/modules/util"
"gitea.dev/services/auth/source/smtp"
auth_model "gotea.dev/models/auth"
"gotea.dev/modules/util"
"gotea.dev/services/auth/source/smtp"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"testing"
auth_model "gitea.dev/models/auth"
"gitea.dev/services/auth/source/smtp"
auth_model "gotea.dev/models/auth"
"gotea.dev/services/auth/source/smtp"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+3 -3
View File
@@ -6,9 +6,9 @@ package cmd
import (
"context"
"gitea.dev/modules/graceful"
asymkey_service "gitea.dev/services/asymkey"
repo_service "gitea.dev/services/repository"
"gotea.dev/modules/graceful"
asymkey_service "gotea.dev/services/asymkey"
repo_service "gotea.dev/services/repository"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"strings"
user_model "gitea.dev/models/user"
"gitea.dev/modules/util"
user_model "gotea.dev/models/user"
"gotea.dev/modules/util"
"github.com/urfave/cli/v3"
)
+5 -5
View File
@@ -8,11 +8,11 @@ import (
"errors"
"fmt"
user_model "gitea.dev/models/user"
"gitea.dev/modules/auth/password"
"gitea.dev/modules/optional"
"gitea.dev/modules/setting"
user_service "gitea.dev/services/user"
user_model "gotea.dev/models/user"
"gotea.dev/modules/auth/password"
"gotea.dev/modules/optional"
"gotea.dev/modules/setting"
user_service "gotea.dev/services/user"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"io"
"testing"
"gitea.dev/models/db"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
"gotea.dev/models/db"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+4 -4
View File
@@ -6,10 +6,10 @@ package cmd
import (
"context"
user_model "gitea.dev/models/user"
"gitea.dev/modules/optional"
"gitea.dev/modules/setting"
user_service "gitea.dev/services/user"
user_model "gotea.dev/models/user"
"gotea.dev/modules/optional"
"gotea.dev/modules/setting"
user_service "gotea.dev/services/user"
"github.com/urfave/cli/v3"
)
+6 -6
View File
@@ -9,12 +9,12 @@ import (
"fmt"
"strings"
auth_model "gitea.dev/models/auth"
"gitea.dev/models/db"
user_model "gitea.dev/models/user"
pwd "gitea.dev/modules/auth/password"
"gitea.dev/modules/optional"
"gitea.dev/modules/setting"
auth_model "gotea.dev/models/auth"
"gotea.dev/models/db"
user_model "gotea.dev/models/user"
pwd "gotea.dev/modules/auth/password"
"gotea.dev/modules/optional"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"strings"
"testing"
auth_model "gitea.dev/models/auth"
"gitea.dev/models/db"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
auth_model "gotea.dev/models/auth"
"gotea.dev/models/db"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+4 -4
View File
@@ -9,10 +9,10 @@ import (
"fmt"
"strings"
user_model "gitea.dev/models/user"
"gitea.dev/modules/setting"
"gitea.dev/modules/storage"
user_service "gitea.dev/services/user"
user_model "gotea.dev/models/user"
"gotea.dev/modules/setting"
"gotea.dev/modules/storage"
user_service "gotea.dev/services/user"
"github.com/urfave/cli/v3"
)
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"strings"
"testing"
auth_model "gitea.dev/models/auth"
"gitea.dev/models/db"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
auth_model "gotea.dev/models/auth"
"gotea.dev/models/db"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"fmt"
"strings"
auth_model "gitea.dev/models/auth"
user_model "gitea.dev/models/user"
"gitea.dev/modules/setting"
auth_model "gotea.dev/models/auth"
user_model "gotea.dev/models/user"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"strconv"
"testing"
auth_model "gitea.dev/models/auth"
"gitea.dev/models/db"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
auth_model "gotea.dev/models/auth"
"gotea.dev/models/db"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
"github.com/go-webauthn/webauthn/webauthn"
"github.com/stretchr/testify/assert"
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"errors"
"fmt"
auth_model "gitea.dev/models/auth"
user_model "gitea.dev/models/user"
auth_model "gotea.dev/models/auth"
user_model "gotea.dev/models/user"
"github.com/urfave/cli/v3"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"os"
"text/tabwriter"
user_model "gitea.dev/models/user"
user_model "gotea.dev/models/user"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"errors"
user_model "gitea.dev/models/user"
"gitea.dev/modules/setting"
user_model "gotea.dev/models/user"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -6,9 +6,9 @@ package cmd
import (
"testing"
"gitea.dev/models/db"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
"gotea.dev/models/db"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+3 -3
View File
@@ -6,9 +6,9 @@ package cmd
import (
"context"
audit_model "gitea.dev/models/audit"
user_model "gitea.dev/models/user"
"gitea.dev/services/audit"
audit_model "gotea.dev/models/audit"
user_model "gotea.dev/models/user"
"gotea.dev/services/audit"
)
func cliAuditContext(ctx context.Context) context.Context {
+5 -5
View File
@@ -15,11 +15,11 @@ import (
"strings"
"testing"
"gitea.dev/cmd"
"gitea.dev/models/unittest"
"gitea.dev/modules/setting"
"gitea.dev/modules/test"
"gitea.dev/modules/util"
"gotea.dev/cmd"
"gotea.dev/models/unittest"
"gotea.dev/modules/setting"
"gotea.dev/modules/test"
"gotea.dev/modules/util"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"fmt"
"os"
"gitea.dev/modules/setting"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+7 -7
View File
@@ -12,13 +12,13 @@ import (
"strings"
"text/tabwriter"
"gitea.dev/modelmigration"
"gitea.dev/modelmigration/base"
"gitea.dev/models/db"
"gitea.dev/modules/container"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gitea.dev/services/doctor"
"gotea.dev/modelmigration"
"gotea.dev/modelmigration/base"
"gotea.dev/models/db"
"gotea.dev/modules/container"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"gotea.dev/services/doctor"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -6,9 +6,9 @@ package cmd
import (
"context"
"gitea.dev/models/db"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/models/db"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"testing"
"gitea.dev/modules/log"
"gitea.dev/services/doctor"
"gotea.dev/modules/log"
"gotea.dev/services/doctor"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+7 -7
View File
@@ -11,13 +11,13 @@ import (
"path/filepath"
"strings"
"gitea.dev/models/db"
"gitea.dev/modules/dump"
"gitea.dev/modules/json"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gitea.dev/modules/storage"
"gitea.dev/modules/util"
"gotea.dev/models/db"
"gotea.dev/modules/dump"
"gotea.dev/modules/json"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"gotea.dev/modules/storage"
"gotea.dev/modules/util"
"gitea.com/go-chi/session"
"github.com/urfave/cli/v3"
+9 -9
View File
@@ -10,15 +10,15 @@ import (
"os"
"strings"
"gitea.dev/modules/git"
"gitea.dev/modules/log"
base "gitea.dev/modules/migration"
"gitea.dev/modules/setting"
"gitea.dev/modules/structs"
"gitea.dev/modules/util"
"gitea.dev/services/convert"
"gitea.dev/services/gitproxy"
"gitea.dev/services/migrations"
"gotea.dev/modules/git"
"gotea.dev/modules/log"
base "gotea.dev/modules/migration"
"gotea.dev/modules/setting"
"gotea.dev/modules/structs"
"gotea.dev/modules/util"
"gotea.dev/services/convert"
"gotea.dev/services/gitproxy"
"gotea.dev/services/migrations"
"github.com/urfave/cli/v3"
)
+7 -7
View File
@@ -11,13 +11,13 @@ import (
"path/filepath"
"strings"
"gitea.dev/modules/assetfs"
"gitea.dev/modules/glob"
"gitea.dev/modules/log"
"gitea.dev/modules/options"
"gitea.dev/modules/public"
"gitea.dev/modules/setting"
"gitea.dev/modules/templates"
"gotea.dev/modules/assetfs"
"gotea.dev/modules/glob"
"gotea.dev/modules/log"
"gotea.dev/modules/options"
"gotea.dev/modules/public"
"gotea.dev/modules/setting"
"gotea.dev/modules/templates"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"fmt"
"os"
"gitea.dev/modules/generate"
"gitea.dev/modules/ssh"
"gotea.dev/modules/generate"
"gotea.dev/modules/ssh"
"github.com/mattn/go-isatty"
"github.com/urfave/cli/v3"
+3 -3
View File
@@ -13,9 +13,9 @@ import (
"strings"
"syscall"
"gitea.dev/models/db"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/models/db"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+6 -6
View File
@@ -14,12 +14,12 @@ import (
"strings"
"time"
"gitea.dev/modules/git"
"gitea.dev/modules/git/gitcmd"
"gitea.dev/modules/log"
"gitea.dev/modules/private"
repo_module "gitea.dev/modules/repository"
"gitea.dev/modules/setting"
"gotea.dev/modules/git"
"gotea.dev/modules/git/gitcmd"
"gotea.dev/modules/log"
"gotea.dev/modules/private"
repo_module "gotea.dev/modules/repository"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"fmt"
"strings"
"gitea.dev/modules/log"
"gitea.dev/modules/private"
"gotea.dev/modules/log"
"gotea.dev/modules/private"
"github.com/urfave/cli/v3"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package cmd
import (
"context"
"gitea.dev/modules/private"
"gitea.dev/modules/setting"
"gotea.dev/modules/private"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+10 -10
View File
@@ -10,8 +10,8 @@ import (
"io"
"os"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
@@ -23,13 +23,13 @@ func init() {
}
// cliHelpPrinterNew helps to print "DEFAULT CONFIGURATION" for the following cases ( "-c" can apper in any position):
// * ./gitea -c /dev/null -h
// * ./gitea -c help /dev/null help
// * ./gitea help -c /dev/null
// * ./gitea help -c /dev/null web
// * ./gitea help web -c /dev/null
// * ./gitea web help -c /dev/null
// * ./gitea web -h -c /dev/null
// * ./gotea -c /dev/null -h
// * ./gotea -c help /dev/null help
// * ./gotea help -c /dev/null
// * ./gotea help -c /dev/null web
// * ./gotea help web -c /dev/null
// * ./gotea web help -c /dev/null
// * ./gotea web -h -c /dev/null
func cliHelpPrinterNew(out io.Writer, templ string, data any) {
cmd, _ := data.(*cli.Command)
if cmd != nil {
@@ -86,7 +86,7 @@ type AppVersion struct {
func NewMainApp(appVer AppVersion) *cli.Command {
app := &cli.Command{}
app.Name = "gitea" // must be lower-cased because it appears in the "USAGE" section like "gitea doctor [command [command options]]"
app.Name = "gotea" // must be lower-cased because it appears in the "USAGE" section like "gotea doctor [command [command options]]"
app.Usage = "A painless self-hosted Git service"
app.Description = `Gitea program contains "web" and other subcommands. If no subcommand is given, it starts the web server by default. Use "web" subcommand for more web server arguments, use other subcommands for other purposes.`
app.Version = appVer.Version + appVer.Extra
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"context"
"testing"
"gitea.dev/models/unittest"
"gotea.dev/models/unittest"
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v3"
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"os"
"time"
"gitea.dev/modules/private"
"gotea.dev/modules/private"
"github.com/urfave/cli/v3"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"fmt"
"os"
"gitea.dev/modules/private"
"gotea.dev/modules/private"
"github.com/urfave/cli/v3"
)
+4 -4
View File
@@ -6,10 +6,10 @@ package cmd
import (
"context"
"gitea.dev/models/db"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gitea.dev/services/versioned_migration"
"gotea.dev/models/db"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"gotea.dev/services/versioned_migration"
"github.com/urfave/cli/v3"
)
+11 -11
View File
@@ -10,17 +10,17 @@ import (
"io/fs"
"strings"
actions_model "gitea.dev/models/actions"
"gitea.dev/models/db"
git_model "gitea.dev/models/git"
packages_model "gitea.dev/models/packages"
repo_model "gitea.dev/models/repo"
user_model "gitea.dev/models/user"
"gitea.dev/modules/log"
packages_module "gitea.dev/modules/packages"
"gitea.dev/modules/setting"
"gitea.dev/modules/storage"
"gitea.dev/services/versioned_migration"
actions_model "gotea.dev/models/actions"
"gotea.dev/models/db"
git_model "gotea.dev/models/git"
packages_model "gotea.dev/models/packages"
repo_model "gotea.dev/models/repo"
user_model "gotea.dev/models/user"
"gotea.dev/modules/log"
packages_module "gotea.dev/modules/packages"
"gotea.dev/modules/setting"
"gotea.dev/modules/storage"
"gotea.dev/services/versioned_migration"
"github.com/urfave/cli/v3"
)
+7 -7
View File
@@ -8,13 +8,13 @@ import (
"strings"
"testing"
"gitea.dev/models/packages"
"gitea.dev/models/unittest"
user_model "gitea.dev/models/user"
packages_module "gitea.dev/modules/packages"
"gitea.dev/modules/setting"
"gitea.dev/modules/storage"
packages_service "gitea.dev/services/packages"
"gotea.dev/models/packages"
"gotea.dev/models/unittest"
user_model "gotea.dev/models/user"
packages_module "gotea.dev/modules/packages"
"gotea.dev/modules/setting"
"gotea.dev/modules/storage"
packages_service "gotea.dev/services/packages"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"context"
"strings"
"gitea.dev/modules/private"
"gitea.dev/modules/setting"
"gotea.dev/modules/private"
"gotea.dev/modules/setting"
"github.com/urfave/cli/v3"
)
+16 -16
View File
@@ -14,22 +14,22 @@ import (
"strings"
"unicode"
asymkey_model "gitea.dev/models/asymkey"
git_model "gitea.dev/models/git"
"gitea.dev/models/perm"
repo_model "gitea.dev/models/repo"
"gitea.dev/modules/git"
"gitea.dev/modules/git/gitcmd"
"gitea.dev/modules/json"
"gitea.dev/modules/lfstransfer"
"gitea.dev/modules/log"
"gitea.dev/modules/pprof"
"gitea.dev/modules/private"
"gitea.dev/modules/process"
repo_module "gitea.dev/modules/repository"
"gitea.dev/modules/setting"
"gitea.dev/services/agit"
"gitea.dev/services/lfs"
asymkey_model "gotea.dev/models/asymkey"
git_model "gotea.dev/models/git"
"gotea.dev/models/perm"
repo_model "gotea.dev/models/repo"
"gotea.dev/modules/git"
"gotea.dev/modules/git/gitcmd"
"gotea.dev/modules/json"
"gotea.dev/modules/lfstransfer"
"gotea.dev/modules/log"
"gotea.dev/modules/pprof"
"gotea.dev/modules/private"
"gotea.dev/modules/process"
repo_module "gotea.dev/modules/repository"
"gotea.dev/modules/setting"
"gotea.dev/services/agit"
"gotea.dev/services/lfs"
"github.com/kballard/go-shellquote"
"github.com/urfave/cli/v3"
+2 -2
View File
@@ -6,8 +6,8 @@ package cmd
import (
"testing"
"gitea.dev/models/perm"
"gitea.dev/modules/git"
"gotea.dev/models/perm"
"gotea.dev/modules/git"
"github.com/stretchr/testify/assert"
)
+14 -14
View File
@@ -15,19 +15,19 @@ import (
"strings"
"time"
audit_model "gitea.dev/models/audit"
"gitea.dev/modules/container"
"gitea.dev/modules/graceful"
"gitea.dev/modules/gtprof"
"gitea.dev/modules/log"
"gitea.dev/modules/process"
"gitea.dev/modules/public"
"gitea.dev/modules/setting"
"gitea.dev/modules/templates"
"gitea.dev/modules/util"
"gitea.dev/routers"
"gitea.dev/routers/install"
"gitea.dev/services/audit"
audit_model "gotea.dev/models/audit"
"gotea.dev/modules/container"
"gotea.dev/modules/graceful"
"gotea.dev/modules/gtprof"
"gotea.dev/modules/log"
"gotea.dev/modules/process"
"gotea.dev/modules/public"
"gotea.dev/modules/setting"
"gotea.dev/modules/templates"
"gotea.dev/modules/util"
"gotea.dev/routers"
"gotea.dev/routers/install"
"gotea.dev/services/audit"
"github.com/felixge/fgprof"
"github.com/urfave/cli/v3"
@@ -114,7 +114,7 @@ func createPIDFile(pidPath string) {
}
func showWebStartupMessage(msg string) {
log.Info("Gitea version: %s%s", setting.AppVer, setting.AppBuiltWith)
log.Info("Gotea version: %s%s", setting.AppVer, setting.AppBuiltWith)
log.Info("* RunMode: %s", setting.RunMode)
log.Info("* AppPath: %s", setting.AppPath)
log.Info("* WorkPath: %s", setting.AppWorkPath)
+5 -5
View File
@@ -14,11 +14,11 @@ import (
"strconv"
"strings"
"gitea.dev/modules/graceful"
"gitea.dev/modules/log"
"gitea.dev/modules/process"
"gitea.dev/modules/setting"
"gitea.dev/modules/util"
"gotea.dev/modules/graceful"
"gotea.dev/modules/log"
"gotea.dev/modules/process"
"gotea.dev/modules/setting"
"gotea.dev/modules/util"
"github.com/caddyserver/certmagic"
)
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"net/http/fcgi"
"strings"
"gitea.dev/modules/graceful"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modules/graceful"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
)
func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error {
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"os"
"strings"
"gitea.dev/modules/graceful"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modules/graceful"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
)
var tlsVersionStringMap = map[string]uint16{
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"strings"
"testing"
"gitea.dev/modules/setting"
"gitea.dev/modules/test"
"gotea.dev/modules/setting"
"gotea.dev/modules/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -41,7 +41,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; App name that shows in every page title
;APP_NAME = Gitea: Git with a cup of tea
;APP_NAME = Gotea: Game of Trees forge
;;
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
;RUN_USER =
+1 -1
View File
@@ -1,4 +1,4 @@
module gitea.dev
module gotea.dev
go 1.27
+9 -9
View File
@@ -10,17 +10,17 @@ import (
"strings"
"time"
"gitea.dev/cmd"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gitea.dev/services/gitproxy"
"gotea.dev/cmd"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"gotea.dev/services/gitproxy"
// register supported doc types
_ "gitea.dev/modules/markup/console"
_ "gitea.dev/modules/markup/csv"
_ "gitea.dev/modules/markup/jupyter"
_ "gitea.dev/modules/markup/markdown"
_ "gitea.dev/modules/markup/orgmode"
_ "gotea.dev/modules/markup/console"
_ "gotea.dev/modules/markup/csv"
_ "gotea.dev/modules/markup/jupyter"
_ "gotea.dev/modules/markup/markdown"
_ "gotea.dev/modules/markup/orgmode"
"github.com/urfave/cli/v3"
)
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"regexp"
"strings"
"gitea.dev/models/db" //nolint:depguard // allow to access db in migration
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/models/db" //nolint:depguard // allow to access db in migration
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"xorm.io/builder"
"xorm.io/xorm/schemas"
+3 -3
View File
@@ -6,9 +6,9 @@ package base_test
import (
"testing"
"gitea.dev/modelmigration/base"
"gitea.dev/modelmigration/migrationtest"
"gitea.dev/modules/timeutil"
"gotea.dev/modelmigration/base"
"gotea.dev/modelmigration/migrationtest"
"gotea.dev/modules/timeutil"
"xorm.io/xorm/names"
)
+2 -2
View File
@@ -4,8 +4,8 @@
package base
import (
"gitea.dev/models/db" //nolint:depguard // allow to access db in migration
"gitea.dev/modules/git/gitrepo"
"gotea.dev/models/db" //nolint:depguard // allow to access db in migration
"gotea.dev/modules/git/gitrepo"
)
// HINT: MIGRATION-STRUCT-FROZEN: the structs used in migrations should not be affected by the changes happen in the future,
+28 -28
View File
@@ -9,34 +9,34 @@ import (
"errors"
"fmt"
"gitea.dev/modelmigration/base"
"gitea.dev/modelmigration/v1_10"
"gitea.dev/modelmigration/v1_11"
"gitea.dev/modelmigration/v1_12"
"gitea.dev/modelmigration/v1_13"
"gitea.dev/modelmigration/v1_14"
"gitea.dev/modelmigration/v1_15"
"gitea.dev/modelmigration/v1_16"
"gitea.dev/modelmigration/v1_17"
"gitea.dev/modelmigration/v1_18"
"gitea.dev/modelmigration/v1_19"
"gitea.dev/modelmigration/v1_20"
"gitea.dev/modelmigration/v1_21"
"gitea.dev/modelmigration/v1_22"
"gitea.dev/modelmigration/v1_23"
"gitea.dev/modelmigration/v1_24"
"gitea.dev/modelmigration/v1_25"
"gitea.dev/modelmigration/v1_26"
"gitea.dev/modelmigration/v1_27"
"gitea.dev/modelmigration/v1_6"
"gitea.dev/modelmigration/v1_7"
"gitea.dev/modelmigration/v1_8"
"gitea.dev/modelmigration/v1_9"
"gitea.dev/modelmigration/v28"
"gitea.dev/modelmigration/v29"
"gitea.dev/modules/git"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modelmigration/base"
"gotea.dev/modelmigration/v1_10"
"gotea.dev/modelmigration/v1_11"
"gotea.dev/modelmigration/v1_12"
"gotea.dev/modelmigration/v1_13"
"gotea.dev/modelmigration/v1_14"
"gotea.dev/modelmigration/v1_15"
"gotea.dev/modelmigration/v1_16"
"gotea.dev/modelmigration/v1_17"
"gotea.dev/modelmigration/v1_18"
"gotea.dev/modelmigration/v1_19"
"gotea.dev/modelmigration/v1_20"
"gotea.dev/modelmigration/v1_21"
"gotea.dev/modelmigration/v1_22"
"gotea.dev/modelmigration/v1_23"
"gotea.dev/modelmigration/v1_24"
"gotea.dev/modelmigration/v1_25"
"gotea.dev/modelmigration/v1_26"
"gotea.dev/modelmigration/v1_27"
"gotea.dev/modelmigration/v1_6"
"gotea.dev/modelmigration/v1_7"
"gotea.dev/modelmigration/v1_8"
"gotea.dev/modelmigration/v1_9"
"gotea.dev/modelmigration/v28"
"gotea.dev/modelmigration/v29"
"gotea.dev/modules/git"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"xorm.io/xorm/names"
)
+1 -1
View File
@@ -6,7 +6,7 @@ package modelmigration
import (
"testing"
"gitea.dev/modules/test"
"gotea.dev/modules/test"
"github.com/stretchr/testify/assert"
)
+6 -6
View File
@@ -8,12 +8,12 @@ import (
"path/filepath"
"testing"
"gitea.dev/modelmigration/base"
"gitea.dev/models/db" //nolint:depguard // allow to access db in migration tests
"gitea.dev/models/unittest" //nolint:depguard // allow to access db in migration tests
"gitea.dev/modules/git"
"gitea.dev/modules/setting"
"gitea.dev/modules/testlogger"
"gotea.dev/modelmigration/base"
"gotea.dev/models/db" //nolint:depguard // allow to access db in migration tests
"gotea.dev/models/unittest" //nolint:depguard // allow to access db in migration tests
"gotea.dev/modules/git"
"gotea.dev/modules/setting"
"gotea.dev/modules/testlogger"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func UpdateMigrationServiceTypes(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func ChangeSomeColumnsLengthOfExternalLoginUser(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"crypto/sha1"
"fmt"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func hashContext(context string) string {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddOriginalMigrationInfo(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func ChangeSomeColumnsLengthOfRepo(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddIndexOnRepositoryAndComment(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
"xorm.io/builder"
)
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddEmailNotificationEnabledToUser(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddStatusCheckColumnsForProtectedBranches(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddCrossReferenceColumns(_ context.Context, x base.EngineMigration) error {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"os"
"path/filepath"
"gitea.dev/modelmigration/base"
"gitea.dev/modules/setting"
"gotea.dev/modelmigration/base"
"gotea.dev/modules/setting"
)
func DeleteOrphanedAttachments(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddRepoAdminChangeTeamAccessColumnForUser(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddOriginalAuthorOnMigratedReleases(_ context.Context, x base.EngineMigration) error {
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
"gitea.dev/modules/timeutil"
"gotea.dev/modelmigration/base"
"gotea.dev/modules/timeutil"
)
func AddTaskTable(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func DropColumnHeadUserNameOnPullRequest(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddWhitelistDeployKeysToBranches(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func RemoveLabelUneededCols(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddTeamIncludesAllRepositories(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
// RepoWatchMode specifies what kind of watch the user has on a repository
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddTemplateToRepo(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddCommentIDOnNotification(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddCanCreateOrgRepoColumnForTeam(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
"xorm.io/xorm/schemas"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"fmt"
"slices"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddBranchProtectionCanPushAndEnableWhitelist(_ context.Context, x base.EngineMigration) error {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"os"
"path/filepath"
"gitea.dev/modelmigration/base"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modelmigration/base"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
"xorm.io/builder"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"context"
"fmt"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func FeatureChangeTargetBranch(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"context"
"net/url"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func SanitizeOriginalURL(_ context.Context, x base.EngineMigration) error {
+4 -4
View File
@@ -13,10 +13,10 @@ import (
"path/filepath"
"time"
"gitea.dev/modelmigration/base"
"gitea.dev/modules/container"
"gitea.dev/modules/log"
"gitea.dev/modules/setting"
"gotea.dev/modelmigration/base"
"gotea.dev/modules/container"
"gotea.dev/modules/log"
"gotea.dev/modules/setting"
)
func RenameExistingUserAvatarName(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_11
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func ExtendTrackedTimes(_ context.Context, x base.EngineMigration) error {
+1 -1
View File
@@ -6,7 +6,7 @@ package v1_12
import (
"context"
"gitea.dev/modelmigration/base"
"gotea.dev/modelmigration/base"
)
func AddBlockOnRejectedReviews(_ context.Context, x base.EngineMigration) error {
Loaded 100 of 2628 files, more files were not shown because too many files have changed in this diff. Show more