Skip to content

Fix for Maven Package Naming Convention Handling #33676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 125 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
e98dd6e
Backport 1.23 (#32868)
wxiaoguang Dec 17, 2024
c8ffe77
Add 1.23.0-rc0 changelog (#32863)
lunny Dec 17, 2024
cb42232
Fix Arch package metadata introduced incorrect field (#32881) (#32882)
GiteaBot Dec 18, 2024
fa5a064
bump x/net (#32896) (#32899)
techknowlogick Dec 18, 2024
a4291fd
Add more load functions to make sure the reference object loaded (#32…
GiteaBot Dec 19, 2024
c20642f
Relax the version checking for Arch packages (#32908) (#32913)
GiteaBot Dec 19, 2024
1e71ad8
Deprecated gopid in log (#32932)
wxiaoguang Dec 20, 2024
b1c2188
Update i18n.go - Language Picker (#32933) (#32935)
GiteaBot Dec 21, 2024
57868c2
Fix locale (#32937) (#32942)
GiteaBot Dec 22, 2024
c442c68
Use primary as button color (#32949) (#32950)
GiteaBot Dec 22, 2024
a8f98fd
fix trailing comma not matched in the case of alphanumeric issue (#32…
GiteaBot Dec 22, 2024
d670820
Use Alpine 3.21 for the docker images (#32924) (#32951)
GiteaBot Dec 22, 2024
e1026fe
Fix repo avatar conflict (#32958) (#32960)
GiteaBot Dec 23, 2024
e18e31d
Fix commit range paging (#32944) (#32962)
GiteaBot Dec 23, 2024
0c58110
Fix outdated tmpl code (#32953) (#32961)
GiteaBot Dec 23, 2024
90bd08c
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#3294…
GiteaBot Dec 23, 2024
0e0ebf6
fix textarea newline handle (#32966) (#32977)
GiteaBot Dec 25, 2024
af5e5e8
Fix maven pom inheritance (#32943) (#32976)
GiteaBot Dec 25, 2024
6636b37
Fix Azure blob object `Seek` (#32974) (#32975)
GiteaBot Dec 25, 2024
ad1b765
demilestone should not include milestone (#32923) (#32979)
GiteaBot Dec 25, 2024
a0b65ed
Do not render truncated links in markdown (#32980) (#32983)
GiteaBot Dec 25, 2024
eed0968
Support org labels when adding labels by label names (#32988) (#32996)
GiteaBot Dec 27, 2024
0137bc4
Support for email addresses containing uppercase characters when acti…
GiteaBot Dec 27, 2024
f35ab5c
Fix Agit pull request permission check (#32999) (#33005)
GiteaBot Dec 28, 2024
f27128b
fix scoped label ui when contains emoji (#33007) (#33014)
GiteaBot Dec 28, 2024
c102e34
Fix bug on activities (#33008) (#33016)
GiteaBot Dec 28, 2024
7f0050c
Fix review code comment avatar alignment (#33031) (#33032)
GiteaBot Dec 29, 2024
ce64641
fix toggle commit body button ui when latest commit message is long (…
wxiaoguang Dec 29, 2024
74159a8
Fix templating in pull request comparison (#33025) (#33038)
GiteaBot Dec 29, 2024
ce6a60a
Refactor testfixtures (#33028)
wxiaoguang Dec 30, 2024
fef364e
Fix bug automerge cannot be chosed when there is only 1 merge style (…
GiteaBot Dec 30, 2024
0858a36
use `-s -w` ldflags for release artifacts (#33041) (#33042)
GiteaBot Dec 30, 2024
610b2fb
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instea…
GiteaBot Dec 30, 2024
d2d7633
Remove aws go sdk package dependency (#33029) (#33047)
GiteaBot Dec 30, 2024
27de603
Fix settings not being loaded at CLI (#26402) (#33048)
GiteaBot Dec 30, 2024
968c04c
Fix issue comment number (#30556) (#33055)
GiteaBot Dec 30, 2024
96fff86
Fix duplicate co-author in squashed merge commit messages (#33020) (#…
GiteaBot Dec 31, 2024
3df11c0
Make issue suggestion work for new PR page (#33035) (#33056)
GiteaBot Dec 31, 2024
68736ec
Refactor maven package registry (#33049) (#33057)
wxiaoguang Dec 31, 2024
bc83fb2
Use project's redirect url instead of composing url (#33058) (#33064)
GiteaBot Dec 31, 2024
39cc725
feat(action): issue change title notifications (#33050) (#33065)
GiteaBot Dec 31, 2024
8176867
Inherit submodules from template repository content (#16237) (#33068)
wxiaoguang Jan 2, 2025
d371aa3
Try to fix ACME directory problem (#33072) (#33077)
GiteaBot Jan 2, 2025
7a35f90
Fix broken forms (#33082)
wxiaoguang Jan 2, 2025
e10d222
Fix bleve fuzziness search (#33078) (#33087)
wxiaoguang Jan 2, 2025
fd28151
Fix line-number and scroll bugs (#33094) (#33095)
wxiaoguang Jan 3, 2025
e637008
Fix empty git repo handling logic and fix mobile view (#33101) (#33102)
wxiaoguang Jan 5, 2025
0fad40d
Fix package error handling and npm meta and empty repo guide (#33112)
wxiaoguang Jan 6, 2025
9899989
Add missing transaction when set merge (#33113)
lunny Jan 6, 2025
63b3a33
fix empty repo updated time (#33120) (#33124)
GiteaBot Jan 6, 2025
b4f0eed
Filter reviews of one pull request in memory instead of database to r…
GiteaBot Jan 8, 2025
531f36e
Fix `git remote` error check, fix dependencies, fix js error (#33129)…
wxiaoguang Jan 8, 2025
a330f42
Update changelog for v1.23.0 (#33130)
lunny Jan 9, 2025
12c24c2
Fix fuzz test (#33156) (#33158)
GiteaBot Jan 9, 2025
d65af69
Fix pam auth test regression (#33169) (#33174)
GiteaBot Jan 9, 2025
6f6c66a
Fix assignee list overlapping in Issue sidebar (#33176) (#33181)
GiteaBot Jan 9, 2025
3cfff5a
Move repo size to sidebar (#33155) (#33182)
GiteaBot Jan 9, 2025
ed1828c
Fix ACME panic (#33178) (#33186)
GiteaBot Jan 10, 2025
15ad001
Fix branch dropdown not display ref name (#33159) (#33183)
GiteaBot Jan 10, 2025
45d21a0
Fix raw file API ref handling (#33172) (#33189)
GiteaBot Jan 10, 2025
940a930
Use updated path to s6-svscan after alpine upgrade (#33185) (#33188)
GiteaBot Jan 10, 2025
d703488
Fix sync fork for consistency (#33147) (#33192)
GiteaBot Jan 10, 2025
1454e1b
Fix editor markdown not incrementing in a numbered list (#33187) (#33…
wxiaoguang Jan 10, 2025
fcbbc24
Change log for 1.23.1 (#33191)
lunny Jan 10, 2025
31f2a32
fix(cache): cache test triggered by non memory cache (#33220) (#33221)
GiteaBot Jan 12, 2025
2c47b06
Fix mirror bug (#33224) (#33225)
GiteaBot Jan 12, 2025
10b6047
Fix upload file form (#33230) (#33233)
GiteaBot Jan 12, 2025
80cc87b
Fix tag route and empty repo (#33253)
wxiaoguang Jan 14, 2025
2984a7c
Fix missing license when sync mirror (#33255) (#33258)
GiteaBot Jan 14, 2025
b4e2d5e
Add a confirm dialog for "sync fork" (#33270) (#33273)
GiteaBot Jan 14, 2025
3b4af01
Fix sidebar milestone link (#33269) (#33272)
GiteaBot Jan 15, 2025
c09e43a
Fix closed dependency title (#33285) (#33287)
wxiaoguang Jan 15, 2025
52d2988
Fix "stop time tracking button" on navbar (#33084) (#33300)
wxiaoguang Jan 16, 2025
bf664c2
Trivial fixes (#33304) (#33312)
wxiaoguang Jan 17, 2025
8d9ea68
Fix push message behavior (#33215) (#33317)
wxiaoguang Jan 19, 2025
e72d001
Fix Account linking page (#33325) (#33327)
GiteaBot Jan 19, 2025
8f45a11
Improve sync fork behavior (#33319) (#33332)
wxiaoguang Jan 20, 2025
eef6355
Make tracked time representation display as hours (#33315) (#33334)
wxiaoguang Jan 20, 2025
7283753
Fix issue count (#33338) (#33341)
GiteaBot Jan 21, 2025
4ffa49a
Make issue suggestion work for all editors (#33340) (#33342)
wxiaoguang Jan 21, 2025
e08eed9
Fix code button alignment (#33345) (#33351)
GiteaBot Jan 22, 2025
987d014
Update go tool dependencies (#32916) (#33355)
silverwind Jan 22, 2025
a3c5358
Update katex to latest version (#33361)
silverwind Jan 23, 2025
12347f0
Repo homepage styling tweaks (#33289) (#33381)
GiteaBot Jan 24, 2025
2196ba5
Clone button enhancements (#33362) (#33404)
GiteaBot Jan 26, 2025
826fffb
Add missed auto merge feed message on dashboard (#33309) (#33405)
GiteaBot Jan 26, 2025
4578288
Use ProtonMail/go-crypto to replace keybase/go-crypto (#33402) (#33410)
GiteaBot Jan 27, 2025
c30f4f4
Fix issue suggestion bug (#33389) (#33391)
wxiaoguang Jan 27, 2025
6f38372
Fix flex width (#33414) (#33418)
GiteaBot Jan 27, 2025
2674d27
Add pubdate for repository rss and add some tests (#33411) (#33416)
GiteaBot Jan 27, 2025
b6fd874
Fix system admin cannot fork or get private fork with API (#33401) (#…
GiteaBot Jan 27, 2025
a8eaf43
Fix user avatar (#33439)
wxiaoguang Jan 30, 2025
9780da5
Fix issue sidebar dropdown keyboard support (#33447) (#33450)
GiteaBot Jan 31, 2025
159544a
Revert empty lfs ref name (#33454) (#33457)
GiteaBot Jan 31, 2025
7df1204
Fix SSH LFS memory usage (#33455) (#33460)
GiteaBot Jan 31, 2025
ebac324
Fix `GetCommitBranchStart` bug (#33298) (#33421)
GiteaBot Feb 1, 2025
23971a7
Add tests for webhook and fix some webhook bugs (#33396) (#33442)
lunny Feb 2, 2025
2746c6f
Correct bot label `vertical-align` (#33477) (#33480)
GiteaBot Feb 2, 2025
200cb61
Fix commit status events (#33320) (#33493)
lunny Feb 5, 2025
2df7d08
Fix unnecessary comment when moving issue on the same project column …
GiteaBot Feb 5, 2025
92436b8
add `timetzdata` build tag to binary releases (#33463) (#33503)
lunny Feb 5, 2025
f076ada
Add changelog for 1.23.2 (#33494)
lunny Feb 5, 2025
58daaf6
Fix a bug caused by status webhook template (#33512)
lunny Feb 6, 2025
312565e
Add changelog for 1.23.3 (#33515)
lunny Feb 6, 2025
a014d07
Rework suggestion backend (#33538) (#33546)
GiteaBot Feb 10, 2025
7c17d0a
Enhance routers for the Actions variable operations (#33547) (#33553)
lunny Feb 11, 2025
7794ff0
Enhance routers for the Actions runner operations (#33549) (#33555)
lunny Feb 11, 2025
8fa3925
Fix context usage (#33554) (#33557)
wxiaoguang Feb 11, 2025
da33b70
Add a transaction to `pickTask` (#33543) (#33563)
lunny Feb 12, 2025
744f7c8
Skip deletion error for action artifacts (#33476) (#33568)
wxiaoguang Feb 12, 2025
76bd60f
Fix various problems (artifact order, api empty slice, assignee check…
GiteaBot Feb 12, 2025
cc6ec56
Only show the latest version in the Arch index (#33262) (#33580)
GiteaBot Feb 13, 2025
5e9cc91
Performance optimization for pull request files loading comments atta…
GiteaBot Feb 14, 2025
d17f8ff
Fix PR's target branch dropdown (#33589) (#33591)
wxiaoguang Feb 14, 2025
7697df9
Use default Git timeout when checking repo health (#33593) (#33598)
GiteaBot Feb 14, 2025
99545ae
Fix mirror bug (#33597) (#33607)
GiteaBot Feb 16, 2025
0512b02
Fix project issues list and counting (#33594) (#33619)
GiteaBot Feb 17, 2025
b2707bc
Make actions URL in commit status webhooks absolute (#33620) (#33632)
GiteaBot Feb 18, 2025
ee3f5e8
fix: add missing locale (#33641) (#33642)
lunny Feb 19, 2025
de70265
Release of Gitea 1.23.4 (#33621)
lunny Feb 19, 2025
8844e62
git graph: don't show detached commits (#33645) (#33650)
GiteaBot Feb 20, 2025
9da6d4e
Fix mCaptcha bug (#33659) (#33661)
GiteaBot Feb 20, 2025
37e99d9
Fix omitempty bug (#33663) (#33670)
GiteaBot Feb 21, 2025
aeeccc9
Deleting repository should unlink all related packages (#33653) (#33673)
GiteaBot Feb 21, 2025
f6a8384
GetVersionsByPackageName witll throw ErrNotExist when no packages found
Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
481 changes: 481 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
FROM docker.io/library/golang:1.23-alpine3.21 AS build-env

ARG GOPROXY
ENV GOPROXY=${GOPROXY:-direct}
Expand Down Expand Up @@ -41,7 +41,7 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \
/go/src/code.gitea.io/gitea/environment-to-ini
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete

FROM docker.io/library/alpine:3.20
FROM docker.io/library/alpine:3.21
LABEL maintainer="[email protected]"

EXPOSE 22 3000
Expand Down Expand Up @@ -78,7 +78,7 @@ ENV GITEA_CUSTOM=/data/gitea
VOLUME ["/data"]

ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/bin/s6-svscan", "/etc/s6"]
CMD ["/usr/bin/s6-svscan", "/etc/s6"]

COPY --from=build-env /tmp/local /
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.rootless
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM docker.io/library/golang:1.23-alpine3.20 AS build-env
FROM docker.io/library/golang:1.23-alpine3.21 AS build-env

ARG GOPROXY
ENV GOPROXY=${GOPROXY:-direct}
Expand Down Expand Up @@ -39,7 +39,7 @@ RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \
/go/src/code.gitea.io/gitea/environment-to-ini
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete

FROM docker.io/library/alpine:3.20
FROM docker.io/library/alpine:3.21
LABEL maintainer="[email protected]"

EXPOSE 2222 3000
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ COMMA := ,
XGO_VERSION := go-1.23.x

AIR_PACKAGE ?= github.com/air-verse/air@v1
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@2.7.0
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3.0.3
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected]
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected].11
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.5.1
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected].12
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/misspell@v0.6.0
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/actionlint@v1
GOPLS_PACKAGE ?= golang.org/x/tools/gopls@v0.15.3
GOPLS_PACKAGE ?= golang.org/x/tools/gopls@v0.17.0

DOCKER_IMAGE ?= gitea/gitea
DOCKER_TAG ?= latest
Expand Down Expand Up @@ -806,22 +806,22 @@ $(DIST_DIRS):

.PHONY: release-windows
release-windows: | $(DIST_DIRS)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'osusergo $(TAGS)' -ldflags '-s -w -linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
ifeq (,$(findstring gogit,$(TAGS)))
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'osusergo gogit $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION)-gogit .
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'osusergo gogit $(TAGS)' -ldflags '-s -w -linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION)-gogit .
endif

.PHONY: release-linux
release-linux: | $(DIST_DIRS)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets '$(LINUX_ARCHS)' -out gitea-$(VERSION) .
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-s -w -linkmode external -extldflags "-static" $(LDFLAGS)' -targets '$(LINUX_ARCHS)' -out gitea-$(VERSION) .

.PHONY: release-darwin
release-darwin: | $(DIST_DIRS)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin-10.12/amd64,darwin-10.12/arm64' -out gitea-$(VERSION) .
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets 'darwin-10.12/amd64,darwin-10.12/arm64' -out gitea-$(VERSION) .

.PHONY: release-freebsd
release-freebsd: | $(DIST_DIRS)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'freebsd/amd64' -out gitea-$(VERSION) .
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) run $(XGO_PACKAGE) -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets 'freebsd/amd64' -out gitea-$(VERSION) .

.PHONY: release-copy
release-copy: | $(DIST_DIRS)
Expand Down
77 changes: 11 additions & 66 deletions assets/go-licenses.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions cmd/admin_user_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ var microcmdUserCreate = &cli.Command{
}

func runCreateUser(c *cli.Context) error {
// this command highly depends on the many setting options (create org, visibility, etc.), so it must have a full setting load first
// duplicate setting loading should be safe at the moment, but it should be refactored & improved in the future.
setting.LoadSettings()

if err := argsSet(c, "email"); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var CmdMigrate = &cli.Command{
Name: "migrate",
Usage: "Migrate the database",
Description: "This is a command for migrating the database, so that you can run gitea admin create-user before starting the server.",
Description: `This is a command for migrating the database, so that you can run "gitea admin create user" before starting the server.`,
Action: runMigrate,
}

Expand Down
11 changes: 11 additions & 0 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"path/filepath"
"strconv"
"strings"
"time"

_ "net/http/pprof" // Used for debugging if enabled and a web server is running

Expand Down Expand Up @@ -115,6 +116,16 @@ func showWebStartupMessage(msg string) {
log.Info("* CustomPath: %s", setting.CustomPath)
log.Info("* ConfigFile: %s", setting.CustomConf)
log.Info("%s", msg) // show startup message

if setting.CORSConfig.Enabled {
log.Info("CORS Service Enabled")
}
if setting.DefaultUILocation != time.Local {
log.Info("Default UI Location is %v", setting.DefaultUILocation.String())
}
if setting.MailService != nil {
log.Info("Mail Service Enabled: RegisterEmailConfirm=%v, Service.EnableNotifyMail=%v", setting.Service.RegisterEmailConfirm, setting.Service.EnableNotifyMail)
}
}

func serveInstall(ctx *cli.Context) error {
Expand Down
4 changes: 3 additions & 1 deletion cmd/web_acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ func runACME(listenAddr string, m http.Handler) error {
altTLSALPNPort = p
}

// FIXME: this path is not right, it uses "AppWorkPath" incorrectly, and writes the data into "AppWorkPath/https"
// Ideally it should migrate to AppDataPath write to "AppDataPath/https"
certmagic.Default.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory}
magic := certmagic.NewDefault()
magic.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory}
// Try to use private CA root if provided, otherwise defaults to system's trust
var certPool *x509.CertPool
if setting.AcmeCARoot != "" {
Expand Down
4 changes: 4 additions & 0 deletions custom/conf/app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,10 @@ LEVEL = Info
;REPO_INDEXER_EXCLUDE =
;;
;MAX_FILE_SIZE = 1048576
;;
;; Bleve engine has performance problems with fuzzy search, so we limit the fuzziness to 0 by default to disable it.
;; If you'd like to enable it, you can set it to a value between 0 and 2.
;TYPE_BLEVE_MAX_FUZZINESS = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
2 changes: 1 addition & 1 deletion docker/root/usr/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ done
if [ $# -gt 0 ]; then
exec "$@"
else
exec /bin/s6-svscan /etc/s6
exec /usr/bin/s6-svscan /etc/s6
fi
38 changes: 14 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.4.1
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358
github.com/ProtonMail/go-crypto v1.0.0
github.com/ProtonMail/go-crypto v1.1.4
github.com/PuerkitoBio/goquery v1.10.0
github.com/SaveTheRbtz/zstd-seekable-format-go/pkg v0.7.3
github.com/alecthomas/chroma/v2 v2.14.0
github.com/aws/aws-sdk-go v1.55.5
github.com/alecthomas/chroma/v2 v2.15.0
github.com/aws/aws-sdk-go-v2/credentials v1.17.42
github.com/aws/aws-sdk-go-v2/service/codecommit v1.27.3
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb
Expand All @@ -55,13 +54,12 @@ require (
github.com/go-chi/cors v1.2.1
github.com/go-co-op/gocron v1.37.0
github.com/go-enry/go-enry/v2 v2.9.1
github.com/go-git/go-billy/v5 v5.6.0
github.com/go-git/go-git/v5 v5.12.0
github.com/go-git/go-billy/v5 v5.6.1
github.com/go-git/go-git/v5 v5.13.1
github.com/go-ldap/ldap/v3 v3.4.8
github.com/go-redsync/redsync/v4 v4.13.0
github.com/go-sql-driver/mysql v1.8.1
github.com/go-swagger/go-swagger v0.31.0
github.com/go-testfixtures/testfixtures/v3 v3.11.0
github.com/go-webauthn/webauthn v0.11.2
github.com/gobwas/glob v0.2.3
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f
Expand All @@ -81,7 +79,6 @@ require (
github.com/jhillyerd/enmime v1.3.0
github.com/json-iterator/go v1.1.12
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
github.com/klauspost/compress v1.17.11
github.com/klauspost/cpuid/v2 v2.2.8
github.com/lib/pq v1.10.9
Expand Down Expand Up @@ -109,7 +106,7 @@ require (
github.com/sassoftware/go-rpmutils v0.4.0
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
github.com/shurcooL/vfsgen v0.0.0-20230704071429-0000e147ea92
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/syndtr/goleveldb v1.0.0
github.com/tstranex/u2f v1.0.0
github.com/ulikunitz/xz v0.5.12
Expand All @@ -121,14 +118,14 @@ require (
github.com/yuin/goldmark v1.7.8
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
github.com/yuin/goldmark-meta v1.1.0
golang.org/x/crypto v0.31.0
golang.org/x/crypto v0.32.0
golang.org/x/image v0.21.0
golang.org/x/net v0.30.0
golang.org/x/net v0.34.0
golang.org/x/oauth2 v0.23.0
golang.org/x/sync v0.10.0
golang.org/x/sys v0.28.0
golang.org/x/sys v0.29.0
golang.org/x/text v0.21.0
golang.org/x/tools v0.26.0
golang.org/x/tools v0.29.0
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.1
gopkg.in/ini.v1 v1.67.0
Expand All @@ -145,8 +142,6 @@ require (
filippo.io/edwards25519 v1.1.0 // indirect
git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
github.com/ClickHouse/ch-go v0.63.1 // indirect
github.com/ClickHouse/clickhouse-go/v2 v2.24.0 // indirect
github.com/DataDog/zstd v1.5.6 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.3.0 // indirect
Expand Down Expand Up @@ -191,7 +186,7 @@ require (
github.com/couchbase/gomemcached v0.3.2 // indirect
github.com/couchbase/goutils v0.1.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/cyphar/filepath-securejoin v0.3.4 // indirect
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/davidmz/go-pageant v1.0.2 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
Expand All @@ -204,8 +199,6 @@ require (
github.com/go-ap/errors v0.0.0-20240910140019-1e9d33cc1568 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.7 // indirect
github.com/go-enry/go-oniguruma v1.2.1 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.7.1 // indirect
github.com/go-fed/httpsig v1.1.1-0.20201223112313-55836744818e // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-ini/ini v1.67.0 // indirect
Expand All @@ -226,7 +219,7 @@ require (
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
github.com/golang/geo v0.0.0-20230421003525-6adc56603217 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.3 // indirect
Expand Down Expand Up @@ -261,6 +254,7 @@ require (
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/mmcloughlin/avo v0.6.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450 // indirect
Expand All @@ -270,10 +264,9 @@ require (
github.com/oklog/ulid v1.3.1 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/paulmach/orb v0.11.1 // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pjbgf/sha1cd v0.3.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.1 // indirect
Expand All @@ -285,7 +278,6 @@ require (
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/shurcooL/httpfs v0.0.0-20230704072500-f1e31cf0ba5c // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
Expand All @@ -310,13 +302,11 @@ require (
github.com/zeebo/blake3 v0.2.4 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
go.mongodb.org/mongo-driver v1.17.1 // indirect
go.opentelemetry.io/otel v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.31.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/time v0.7.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
Loading
Loading