Skip to content

Commit 135f3d5

Browse files
committed
Merge branch 'main' into fix-deploy-key-write
2 parents 455e2a8 + fda5b9f commit 135f3d5

File tree

386 files changed

+1822
-16729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+1822
-16729
lines changed

.drone.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ steps:
2525
- make deps-frontend
2626

2727
- name: deps-backend
28-
image: golang:1.17
28+
image: golang:1.18
2929
pull: always
3030
commands:
3131
- make deps-backend
@@ -49,18 +49,24 @@ steps:
4949
GOSUMDB: sum.golang.org
5050
TAGS: bindata sqlite sqlite_unlock_notify
5151
depends_on: [deps-backend]
52+
volumes:
53+
- name: deps
54+
path: /go
5255

5356
- name: lint-backend-windows
5457
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
5558
commands:
56-
- make golangci-lint vet
59+
- make golangci-lint-windows vet
5760
environment:
5861
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
5962
GOSUMDB: sum.golang.org
6063
TAGS: bindata sqlite sqlite_unlock_notify
6164
GOOS: windows
6265
GOARCH: amd64
6366
depends_on: [deps-backend]
67+
volumes:
68+
- name: deps
69+
path: /go
6470

6571
- name: lint-backend-gogit
6672
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
@@ -71,6 +77,9 @@ steps:
7177
GOSUMDB: sum.golang.org
7278
TAGS: bindata gogit sqlite sqlite_unlock_notify
7379
depends_on: [deps-backend]
80+
volumes:
81+
- name: deps
82+
path: /go
7483

7584
- name: checks-frontend
7685
image: node:16
@@ -79,7 +88,7 @@ steps:
7988
depends_on: [deps-frontend]
8089

8190
- name: checks-backend
82-
image: golang:1.17
91+
image: golang:1.18
8392
commands:
8493
- make checks-backend
8594
depends_on: [deps-backend]
@@ -100,7 +109,7 @@ steps:
100109
depends_on: [test-frontend]
101110

102111
- name: build-backend-no-gcc
103-
image: golang:1.16 # this step is kept as the lowest version of golang that we support
112+
image: golang:1.17 # this step is kept as the lowest version of golang that we support
104113
pull: always
105114
environment:
106115
GO111MODULE: on
@@ -113,7 +122,7 @@ steps:
113122
path: /go
114123

115124
- name: build-backend-arm64
116-
image: golang:1.17
125+
image: golang:1.18
117126
environment:
118127
GO111MODULE: on
119128
GOPROXY: https://goproxy.cn
@@ -129,7 +138,7 @@ steps:
129138
path: /go
130139

131140
- name: build-backend-windows
132-
image: golang:1.17
141+
image: golang:1.18
133142
environment:
134143
GO111MODULE: on
135144
GOPROXY: https://goproxy.cn
@@ -144,7 +153,7 @@ steps:
144153
path: /go
145154

146155
- name: build-backend-386
147-
image: golang:1.17
156+
image: golang:1.18
148157
environment:
149158
GO111MODULE: on
150159
GOPROXY: https://goproxy.cn
@@ -233,7 +242,7 @@ steps:
233242
- pull_request
234243

235244
- name: deps-backend
236-
image: golang:1.17
245+
image: golang:1.18
237246
pull: always
238247
commands:
239248
- make deps-backend
@@ -350,7 +359,7 @@ steps:
350359
path: /go
351360

352361
- name: generate-coverage
353-
image: golang:1.17
362+
image: golang:1.18
354363
commands:
355364
- make coverage
356365
environment:
@@ -425,7 +434,7 @@ steps:
425434
- pull_request
426435

427436
- name: deps-backend
428-
image: golang:1.17
437+
image: golang:1.18
429438
pull: always
430439
commands:
431440
- make deps-backend
@@ -567,7 +576,7 @@ trigger:
567576

568577
steps:
569578
- name: download
570-
image: golang:1.17
579+
image: golang:1.18
571580
pull: always
572581
commands:
573582
- timeout -s ABRT 40m make generate-license generate-gitignore
@@ -628,7 +637,7 @@ steps:
628637
- make deps-frontend
629638

630639
- name: deps-backend
631-
image: golang:1.17
640+
image: golang:1.18
632641
pull: always
633642
commands:
634643
- make deps-backend
@@ -637,7 +646,7 @@ steps:
637646
path: /go
638647

639648
- name: static
640-
image: techknowlogick/xgo:go-1.17.x
649+
image: techknowlogick/xgo:go-1.18.x
641650
pull: always
642651
commands:
643652
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
@@ -746,7 +755,7 @@ steps:
746755
- make deps-frontend
747756

748757
- name: deps-backend
749-
image: golang:1.17
758+
image: golang:1.18
750759
pull: always
751760
commands:
752761
- make deps-backend
@@ -755,7 +764,7 @@ steps:
755764
path: /go
756765

757766
- name: static
758-
image: techknowlogick/xgo:go-1.17.x
767+
image: techknowlogick/xgo:go-1.18.x
759768
pull: always
760769
commands:
761770
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs

.golangci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ linters:
1313
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
1414
- gofmt
1515
- misspell
16-
- gocritic
16+
#- gocritic # TODO: disabled until fixed with go 1.18
1717
- bidichk
1818
- ineffassign
1919
- revive
@@ -23,7 +23,7 @@ linters:
2323
fast: false
2424

2525
run:
26-
timeout: 3m
26+
timeout: 10m
2727
skip-dirs:
2828
- node_modules
2929
- public
@@ -64,7 +64,7 @@ linters-settings:
6464
- name: modifies-value-receiver
6565
gofumpt:
6666
extra-rules: true
67-
lang-version: 1.16
67+
lang-version: 1.18
6868

6969
issues:
7070
exclude-rules:
@@ -152,3 +152,5 @@ issues:
152152
- path: models/user/openid.go
153153
linters:
154154
- golint
155+
- linters: staticcheck
156+
text: "strings.Title is deprecated: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead."

CHANGELOG.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,105 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.16.4](https://github.com/go-gitea/gitea/releases/tag/v1.16.4) - 2022-03-14
8+
9+
* SECURITY
10+
* Restrict email address validation (#17688) (#19085)
11+
* Fix lfs bug (#19072) (#19080)
12+
* ENHANCEMENTS
13+
* Improve SyncMirrors logging (#19045) (#19050)
14+
* BUGFIXES
15+
* Refactor mirror code & fix `StartToMirror` (#18904) (#19075)
16+
* Update the webauthn_credential_id_sequence in Postgres (#19048) (#19060)
17+
* Prevent 500 when there is an error during new auth source post (#19041) (#19059)
18+
* If rendering has failed due to a net.OpError stop rendering (attempt 2) (#19049) (#19056)
19+
* Fix flag validation (#19046) (#19051)
20+
* Add pam account authorization check (#19040) (#19047)
21+
* Ignore missing comment for user notifications (#18954) (#19043)
22+
* Set `rel="nofollow noindex"` on new issue links (#19023) (#19042)
23+
* Upgrading binding package (#19034) (#19035)
24+
* Don't show context cancelled errors in attribute reader (#19006) (#19027)
25+
* Fix update hint bug (#18996) (#19002)
26+
* MISC
27+
* Fix potential assignee query for repo (#18994) (#18999)
28+
29+
## [1.16.3](https://github.com/go-gitea/gitea/releases/tag/v1.16.3) - 2022-03-02
30+
31+
* SECURITY
32+
* Git backend ignore replace objects (#18979) (#18980)
33+
* ENHANCEMENTS
34+
* Adjust error for already locked db and prevent level db lock on malformed connstr (#18923) (#18938)
35+
* BUGFIXES
36+
* Set max text height to prevent overflow (#18862) (#18977)
37+
* Fix newAttachmentPaths deletion for DeleteRepository() (#18973) (#18974)
38+
* Accounts with WebAuthn only (no TOTP) now exist ... fix code to handle that case (#18897) (#18964)
39+
* Send 404 on `/{org}.gpg` (#18959) (#18962)
40+
* Fix admin user list pagination (#18957) (#18960)
41+
* Fix lfs management setting (#18947) (#18946)
42+
* Fix login with email panic when email is not exist (#18942)
43+
* Update go-org to v1.6.1 (#18932) (#18933)
44+
* Fix `<strong>` html in translation (#18929) (#18931)
45+
* Fix page and missing return on unadopted repos API (#18848) (#18927)
46+
* Allow adminstrator teams members to see other teams (#18918) (#18919)
47+
* Don't treat BOM escape sequence as hidden character. (#18909) (#18910)
48+
* Correctly link URLs to users/repos with dashes, dots or underscores (… (#18908)
49+
* Fix redirect when using lowercase repo name (#18775) (#18902)
50+
* Fix migration v210 (#18893) (#18892)
51+
* Fix team management UI (#18887) (18886)
52+
* BeforeSourcePath should point to base commit (#18880) (#18799)
53+
* TRANSLATION
54+
* Backport locales from master (#18944)
55+
* MISC
56+
* Don't update email for organisation (#18905) (#18906)
57+
58+
## [1.16.2](https://github.com/go-gitea/gitea/releases/tag/v1.16.2) - 2022-02-24
59+
60+
* ENHANCEMENTS
61+
* Show fullname on issue edits and gpg/ssh signing info (#18828)
62+
* Immediately Hammer if second kill is sent (#18823) (#18826)
63+
* Allow mermaid render error to wrap (#18791)
64+
* BUGFIXES
65+
* Fix ldap user sync missed email in email_address table (#18786) (#18876)
66+
* Update assignees check to include any writing team and change org sidebar (#18680) (#18873)
67+
* Don't report signal: killed errors in serviceRPC (#18850) (#18865)
68+
* Fix bug where certain LDAP settings were reverted (#18859)
69+
* Update go-org to 1.6.0 (#18824) (#18839)
70+
* Fix login with email for ldap users (#18800) (#18836)
71+
* Fix bug for get user by email (#18834)
72+
* Fix panic in EscapeReader (#18820) (#18821)
73+
* Fix ldap loginname (#18789) (#18804)
74+
* Remove redundant call to UpdateRepoStats during migration (#18591) (#18794)
75+
* In disk_channel queues synchronously push to disk on shutdown (#18415) (#18788)
76+
* Fix template bug of LFS lock (#18784) (#18787)
77+
* Attempt to fix the webauthn migration again - part 3 (#18770) (#18771)
78+
* Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) (#18765)
79+
* Fix a broken link in commits_list_small.tmpl (#18763) (#18764)
80+
* Increase the size of the webauthn_credential credential_id field (#18739) (#18756)
81+
* Prevent dangling GetAttribute calls (#18754) (#18755)
82+
* Fix isempty detection of git repository (#18746) (#18750)
83+
* Fix source code line highlighting on external tracker (#18729) (#18740)
84+
* Prevent double encoding of branch names in delete branch (#18714) (#18738)
85+
* Always set PullRequestWorkInProgressPrefixes in PrepareViewPullInfo (#18713) (#18737)
86+
* Fix forked repositories missed tags (#18719) (#18735)
87+
* Fix release typo (#18728) (#18731)
88+
* Separate the details links of commit-statuses in headers (#18661) (#18730)
89+
* Update object repo with the migrated repository (#18684) (#18726)
90+
* Fix bug for version update hint (#18701) (#18705)
91+
* Fix issue with docker-rootless shimming script (#18690) (#18699)
92+
* Let `MinUnitAccessMode` return correct perm (#18675) (#18689)
93+
* Prevent security failure due to bad APP_ID (#18678) (#18682)
94+
* Restart zero worker if there is still work to do (#18658) (#18672)
95+
* If rendering has failed due to a net.OpError stop rendering (#18642) (#18645)
96+
* TESTING
97+
* Ensure git tag tests and others create test repos in tmpdir (#18447) (#18767)
98+
* BUILD
99+
* Reduce CI go module downloads, add make targets (#18708, #18475, #18443) (#18741)
100+
* MISC
101+
* Put buttons back in org dashboard (#18817) (#18825)
102+
* Various Mermaid improvements (#18776) (#18780)
103+
* C preprocessor colors improvement (#18671) (#18696)
104+
* Fix the missing i18n key for update checker (#18646) (#18665)
105+
7106
## [1.16.1](https://github.com/go-gitea/gitea/releases/tag/v1.16.1) - 2022-02-06
8107

9108
* SECURITY

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.17-alpine3.15 AS build-env
2+
FROM golang:1.18-alpine3.15 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.17-alpine3.15 AS build-env
2+
FROM golang:1.18-alpine3.15 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}

0 commit comments

Comments
 (0)