Skip to content

Commit 274aeb3

Browse files
build with go1.17 (#16707)
Co-authored-by: Lauris BH <lauris@nix.lv>
1 parent 37d0d94 commit 274aeb3

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.drone.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565

6666
- name: checks-backend
6767
pull: always
68-
image: golang:1.16
68+
image: golang:1.17
6969
commands:
7070
- make checks-backend
7171
depends_on: [lint-backend]
@@ -93,7 +93,7 @@ steps:
9393
depends_on: [checks-backend]
9494

9595
- name: build-backend-arm64
96-
image: golang:1.16
96+
image: golang:1.17
9797
environment:
9898
GO111MODULE: on
9999
GOPROXY: off
@@ -106,7 +106,7 @@ steps:
106106
depends_on: [checks-backend]
107107

108108
- name: build-backend-windows
109-
image: golang:1.16
109+
image: golang:1.17
110110
environment:
111111
GO111MODULE: on
112112
GOPROXY: off
@@ -118,7 +118,7 @@ steps:
118118
depends_on: [checks-backend]
119119

120120
- name: build-backend-386
121-
image: golang:1.16
121+
image: golang:1.17
122122
environment:
123123
GO111MODULE: on
124124
GOPROXY: off
@@ -193,7 +193,7 @@ steps:
193193

194194
- name: build
195195
pull: always
196-
image: golang:1.16
196+
image: golang:1.17
197197
commands:
198198
- make backend
199199
environment:
@@ -208,7 +208,7 @@ steps:
208208
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
209209

210210
- name: unit-test
211-
image: golang:1.16
211+
image: golang:1.17
212212
commands:
213213
- make unit-test-coverage test-check
214214
environment:
@@ -218,7 +218,7 @@ steps:
218218
from_secret: github_read_token
219219

220220
- name: unit-test-race
221-
image: golang:1.16
221+
image: golang:1.17
222222
commands:
223223
- make test-backend
224224
environment:
@@ -230,7 +230,7 @@ steps:
230230

231231
- name: unit-test-gogit
232232
pull: always
233-
image: golang:1.16
233+
image: golang:1.17
234234
commands:
235235
- make unit-test-coverage test-check
236236
environment:
@@ -277,7 +277,7 @@ steps:
277277
- build
278278

279279
- name: generate-coverage
280-
image: golang:1.16
280+
image: golang:1.17
281281
commands:
282282
- make coverage
283283
environment:
@@ -351,7 +351,7 @@ steps:
351351

352352
- name: build
353353
pull: always
354-
image: golang:1.16
354+
image: golang:1.17
355355
commands:
356356
- make backend
357357
environment:
@@ -463,7 +463,7 @@ trigger:
463463

464464
steps:
465465
- name: download
466-
image: golang:1.16
466+
image: golang:1.17
467467
commands:
468468
- timeout -s ABRT 40m make generate-license generate-gitignore
469469

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

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

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

Dockerfile.rootless

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

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

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

Makefile

+1-1
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.16.x
27+
XGO_VERSION := go-1.17.x
2828
MIN_GO_VERSION := 001016000
2929
MIN_NODE_VERSION := 012017000
3030

docs/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ params:
2020
website: https://docs.gitea.io
2121
version: 1.14.6
2222
minGoVersion: 1.16
23-
goVersion: 1.16
23+
goVersion: 1.17
2424
minNodeVersion: 12.17
2525

2626
outputs:

0 commit comments

Comments
 (0)