Skip to content

Commit 47f6a4e

Browse files
go1.16 (#14783)
1 parent 030646e commit 47f6a4e

File tree

947 files changed

+26108
-7051
lines changed

Some content is hidden

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

947 files changed

+26108
-7051
lines changed

.drone.yml

Lines changed: 22 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ platform:
66
os: linux
77
arch: arm64
88

9-
workspace:
10-
base: /go
11-
path: src/code.gitea.io/gitea
12-
139
trigger:
1410
event:
1511
- push
@@ -31,7 +27,7 @@ steps:
3127

3228
- name: lint-backend
3329
pull: always
34-
image: golang:1.15
30+
image: golang:1.16
3531
commands:
3632
- make lint-backend
3733
environment:
@@ -41,7 +37,7 @@ steps:
4137

4238
- name: lint-backend-windows
4339
pull: always
44-
image: golang:1.15
40+
image: golang:1.16
4541
commands:
4642
- make golangci-lint vet
4743
environment:
@@ -53,7 +49,7 @@ steps:
5349

5450
- name: lint-backend-gogit
5551
pull: always
56-
image: golang:1.15
52+
image: golang:1.16
5753
commands:
5854
- make lint-backend
5955
environment:
@@ -69,7 +65,7 @@ steps:
6965

7066
- name: checks-backend
7167
pull: always
72-
image: golang:1.15
68+
image: golang:1.16
7369
commands:
7470
- make checks-backend
7571
depends_on: [lint-backend]
@@ -91,7 +87,7 @@ steps:
9187
depends_on: [checks-backend]
9288

9389
- name: build-backend-arm64
94-
image: golang:1.15
90+
image: golang:1.16
9591
environment:
9692
GO111MODULE: on
9793
GOPROXY: off
@@ -104,7 +100,7 @@ steps:
104100
depends_on: [checks-backend]
105101

106102
- name: build-backend-windows
107-
image: golang:1.15
103+
image: golang:1.16
108104
environment:
109105
GO111MODULE: on
110106
GOPROXY: off
@@ -116,7 +112,7 @@ steps:
116112
depends_on: [checks-backend]
117113

118114
- name: build-backend-386
119-
image: golang:1.15
115+
image: golang:1.16
120116
environment:
121117
GO111MODULE: on
122118
GOPROXY: off
@@ -143,10 +139,6 @@ trigger:
143139
- tag
144140
- pull_request
145141

146-
workspace:
147-
base: /go
148-
path: src/code.gitea.io/gitea
149-
150142
services:
151143
- name: mysql
152144
image: mysql:5.7
@@ -195,7 +187,7 @@ steps:
195187

196188
- name: build
197189
pull: always
198-
image: golang:1.15
190+
image: golang:1.16
199191
commands:
200192
- make backend
201193
environment:
@@ -210,7 +202,7 @@ steps:
210202
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
211203

212204
- name: unit-test
213-
image: golang:1.15
205+
image: golang:1.16
214206
commands:
215207
- make unit-test-coverage test-check
216208
environment:
@@ -221,7 +213,7 @@ steps:
221213

222214
- name: unit-test-gogit
223215
pull: always
224-
image: golang:1.15
216+
image: golang:1.16
225217
commands:
226218
- make unit-test-coverage test-check
227219
environment:
@@ -231,7 +223,7 @@ steps:
231223
from_secret: github_read_token
232224

233225
- name: test-mysql
234-
image: golang:1.15
226+
image: golang:1.16
235227
commands:
236228
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
237229
- apt-get install -y git-lfs
@@ -246,7 +238,7 @@ steps:
246238
- build
247239

248240
- name: test-mysql8
249-
image: golang:1.15
241+
image: golang:1.16
250242
commands:
251243
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
252244
- apt-get install -y git-lfs
@@ -260,7 +252,7 @@ steps:
260252
- build
261253

262254
- name: test-mssql
263-
image: golang:1.15
255+
image: golang:1.16
264256
commands:
265257
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
266258
- apt-get install -y git-lfs
@@ -274,7 +266,7 @@ steps:
274266
- build
275267

276268
- name: generate-coverage
277-
image: golang:1.15
269+
image: golang:1.16
278270
commands:
279271
- make coverage
280272
environment:
@@ -324,10 +316,6 @@ trigger:
324316
- tag
325317
- pull_request
326318

327-
workspace:
328-
base: /go
329-
path: src/code.gitea.io/gitea
330-
331319
services:
332320
- name: pgsql
333321
pull: default
@@ -352,16 +340,16 @@ steps:
352340

353341
- name: build
354342
pull: always
355-
image: golang:1.15
343+
image: golang:1.16
356344
commands:
357345
- make backend
358346
environment:
359347
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
360348
GOSUMDB: sum.golang.org
361-
TAGS: bindata sqlite sqlite_unlock_notify
349+
TAGS: bindata gogit sqlite sqlite_unlock_notify
362350

363351
- name: test-sqlite
364-
image: golang:1.15
352+
image: golang:1.16
365353
commands:
366354
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
367355
- apt-get install -y git-lfs
@@ -375,7 +363,7 @@ steps:
375363
- build
376364

377365
- name: test-pgsql
378-
image: golang:1.15
366+
image: golang:1.16
379367
commands:
380368
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
381369
- apt-get install -y git-lfs
@@ -397,10 +385,6 @@ platform:
397385
os: linux
398386
arch: arm64
399387

400-
workspace:
401-
base: /go
402-
path: src/code.gitea.io/gitea
403-
404388
trigger:
405389
branch:
406390
- master
@@ -459,11 +443,7 @@ name: update_gitignore_and_licenses
459443

460444
platform:
461445
os: linux
462-
arch: amd64
463-
464-
workspace:
465-
base: /go
466-
path: src/code.gitea.io/gitea
446+
arch: arm64
467447

468448
trigger:
469449
branch:
@@ -475,7 +455,7 @@ trigger:
475455

476456
steps:
477457
- name: download
478-
image: golang:1.15
458+
image: golang:1.16
479459
commands:
480460
- timeout -s ABRT 40m make generate-license generate-gitignore
481461

@@ -500,10 +480,6 @@ platform:
500480
os: linux
501481
arch: amd64
502482

503-
workspace:
504-
base: /go
505-
path: src/code.gitea.io/gitea
506-
507483
trigger:
508484
branch:
509485
- master
@@ -523,7 +499,7 @@ steps:
523499

524500
- name: static
525501
pull: always
526-
image: techknowlogick/xgo:go-1.15.x
502+
image: techknowlogick/xgo:go-1.16.x
527503
commands:
528504
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
529505
- export PATH=$PATH:$GOPATH/bin
@@ -598,10 +574,6 @@ platform:
598574
os: linux
599575
arch: amd64
600576

601-
workspace:
602-
base: /go
603-
path: src/code.gitea.io/gitea
604-
605577
trigger:
606578
event:
607579
- tag
@@ -619,7 +591,7 @@ steps:
619591

620592
- name: static
621593
pull: always
622-
image: techknowlogick/xgo:go-1.15.x
594+
image: techknowlogick/xgo:go-1.16.x
623595
commands:
624596
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
625597
- export PATH=$PATH:$GOPATH/bin
@@ -719,10 +691,6 @@ platform:
719691
os: linux
720692
arch: amd64
721693

722-
workspace:
723-
base: /go
724-
path: src/code.gitea.io/gitea
725-
726694
depends_on:
727695
- testing-amd64
728696
- testing-arm64
@@ -788,10 +756,6 @@ platform:
788756
os: linux
789757
arch: arm64
790758

791-
workspace:
792-
base: /go
793-
path: src/code.gitea.io/gitea
794-
795759
depends_on:
796760
- compliance
797761

@@ -824,10 +788,6 @@ platform:
824788
os: linux
825789
arch: arm64
826790

827-
workspace:
828-
base: /go
829-
path: src/code.gitea.io/gitea
830-
831791
depends_on:
832792
- testing-amd64
833793
- testing-arm64

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.15-alpine3.13 AS build-env
4+
FROM golang:1.16-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.15-alpine3.13 AS build-env
4+
FROM golang:1.16-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SHASUM ?= shasum -a 256
2424
HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
2525
COMMA := ,
2626

27-
XGO_VERSION := go-1.15.x
27+
XGO_VERSION := go-1.16.x
2828
MIN_GO_VERSION := 001014000
2929
MIN_NODE_VERSION := 010013000
3030

@@ -596,7 +596,7 @@ release-darwin: | $(DIST_DIRS)
596596
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
597597
GO111MODULE=off $(GO) get -u src.techknowlogick.com/xgo; \
598598
fi
599-
CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/amd64' -out gitea-$(VERSION) .
599+
CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin-10.12/amd64' -out gitea-$(VERSION) .
600600
ifeq ($(CI),drone)
601601
cp /build/* $(DIST)/binaries
602602
endif

docs/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ params:
2020
website: https://docs.gitea.io
2121
version: 1.13.2
2222
minGoVersion: 1.14
23-
goVersion: 1.15
23+
goVersion: 1.16
2424
minNodeVersion: 10.13
2525

2626
outputs:

0 commit comments

Comments
 (0)